only chown if needed (fixes nfs issue)
This commit is contained in:
parent
c8d9ce4ef4
commit
fe95e0fee3
1 changed files with 4 additions and 1 deletions
3
stack.sh
3
stack.sh
|
@ -271,8 +271,11 @@ failed() {
|
|||
# an error. It is also useful for following along as the install occurs.
|
||||
set -o xtrace
|
||||
|
||||
# create the destination directory and ensure it is writable by the user
|
||||
sudo mkdir -p $DEST
|
||||
if [ ! -w $DEST ]; then
|
||||
sudo chown `whoami` $DEST
|
||||
fi
|
||||
|
||||
# Install Packages
|
||||
# ================
|
||||
|
|
Loading…
Reference in a new issue