mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-22 18:30:43 +00:00
Fix bootstrap when run within another sea and check for writability of /usr/local, defaulting to $HOME/narwhal
This commit is contained in:
+8
-1
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user