2016-04-18 05:26:09 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-07-07 15:00:59 +08:00
|
|
|
set -ex
|
|
|
|
|
2018-06-01 06:26:30 +08:00
|
|
|
\. ../../nvm.sh
|
|
|
|
\. ../common.sh
|
2016-04-18 05:26:09 +08:00
|
|
|
|
2018-06-01 06:26:30 +08:00
|
|
|
make_fake_node v0.0.1
|
|
|
|
sudo touch ""$(nvm_version_path v0.0.1)"/sudo"
|
2016-04-18 05:26:09 +08:00
|
|
|
|
2016-07-07 15:00:59 +08:00
|
|
|
RETURN_MESSAGE="$(nvm uninstall v0.0.1 2>&1 || echo)"
|
2016-04-18 05:26:09 +08:00
|
|
|
CHECK_FOR="Cannot uninstall, incorrect permissions on installation folder"
|
|
|
|
|
2016-07-07 15:00:59 +08:00
|
|
|
[ "${RETURN_MESSAGE#*$CHECK_FOR}" != "$RETURN_MESSAGE" ] || exit 1
|