diff --git a/installer/install.sh b/installer/install.sh index fdd15f7..bfa1e76 100755 --- a/installer/install.sh +++ b/installer/install.sh @@ -8,6 +8,11 @@ __cleanup () if [ -n "$file" ]; then rm $file 2>/dev/null fi + base=$(basename $(pwd)) + parent=$(dirname $(pwd)) + if [ "$base" != "installer" ] || [ "$parent" != "aion-cli" ]; then + rm install.sh 2>/dev/null + fi } trap __cleanup EXIT