commit | fe95e0fee3e22d94d0ed815be0f0c90b681e6019 | [log] [tgz] |
---|---|---|
author | Jesse Andrews <anotherjesse@gmail.com> | Wed Oct 19 14:30:37 2011 -0700 |
committer | Jesse Andrews <anotherjesse@gmail.com> | Wed Oct 19 14:30:37 2011 -0700 |
tree | bed910ce9bfac59b9721b29e4ec7ce2293c69a6e | |
parent | c8d9ce4ef44c3490bd5a09e4749c98ceeadc1f2f [diff] [blame] |
only chown if needed (fixes nfs issue)
diff --git a/stack.sh b/stack.sh index a49de1a..62d5073 100755 --- a/stack.sh +++ b/stack.sh
@@ -271,8 +271,11 @@ # 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 -sudo chown `whoami` $DEST +if [ ! -w $DEST ]; then + sudo chown `whoami` $DEST +fi # Install Packages # ================