Fix bootstrap when run within another sea and check for writability of /usr/local, defaulting to $HOME/narwhal

This commit is contained in:
Tom Robinson
2010-02-24 16:16:27 -08:00
parent 48afc5639e
commit 2d477b38bc
+8 -1
View File
@@ -78,7 +78,12 @@ function check_and_exit () {
fi
}
default_directory="/usr/local/narwhal"
if [ -w "/usr/local" ]; then
default_directory="/usr/local/narwhal"
else
default_directory="$HOME/narwhal"
fi
install_directory=""
tmp_zip="/tmp/narwhal.zip"
@@ -113,6 +118,8 @@ github_project="$github_user-narwhal"
github_path=$(echo "$github_project" | tr '-' '/')
unset NARWHAL_ENGINE
unset SEA
unset SEALVL
PATH_SAVED="$PATH"