mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 06:41:50 +00:00
Run cleanup on die in nvm_checksum unit test.
This commit is contained in:
parent
429656bc41
commit
e8056ac460
@ -4,7 +4,7 @@ cleanup () {
|
|||||||
rm tmp/emptyfile tmp/testfile
|
rm tmp/emptyfile tmp/testfile
|
||||||
rmdir tmp
|
rmdir tmp
|
||||||
}
|
}
|
||||||
die () { echo $@ ; exit 1; }
|
die () { echo $@ ; cleanup; exit 1; }
|
||||||
|
|
||||||
. ../../../nvm.sh
|
. ../../../nvm.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user