mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Add fast test to check nvm uninstall with file permission error
This commit is contained in:
parent
6fb528f4e4
commit
dff4f80f32
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd ../..
|
||||||
|
mkdir v0.0.1
|
||||||
|
mkdir src/node-v0.0.1
|
||||||
|
|
||||||
|
sudo touch v0.0.1/sudo
|
||||||
|
|
||||||
|
. ./nvm.sh
|
||||||
|
|
||||||
|
RETURN_MESSAGE="$(nvm uninstall v0.0.1 2>&1)"
|
||||||
|
CHECK_FOR="Cannot uninstall, incorrect permissions on installation folder"
|
||||||
|
|
||||||
|
test "${RETURN_MESSAGE#*$CHECK_FOR}" != "$RETURN_MESSAGE" || exit 1
|
Loading…
Reference in New Issue
Block a user