commit
ee506ac918
1 changed files with 4 additions and 3 deletions
5
stack.sh
5
stack.sh
|
@ -271,8 +271,11 @@ failed() {
|
||||||
# an error. It is also useful for following along as the install occurs.
|
# an error. It is also useful for following along as the install occurs.
|
||||||
set -o xtrace
|
set -o xtrace
|
||||||
|
|
||||||
|
# create the destination directory and ensure it is writable by the user
|
||||||
sudo mkdir -p $DEST
|
sudo mkdir -p $DEST
|
||||||
|
if [ ! -w $DEST ]; then
|
||||||
sudo chown `whoami` $DEST
|
sudo chown `whoami` $DEST
|
||||||
|
fi
|
||||||
|
|
||||||
# Install Packages
|
# Install Packages
|
||||||
# ================
|
# ================
|
||||||
|
@ -301,8 +304,6 @@ function git_clone {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d $2 ]; then
|
if [ ! -d $2 ]; then
|
||||||
sudo mkdir $2
|
|
||||||
sudo chown `whoami` $2
|
|
||||||
git clone $1 $2
|
git clone $1 $2
|
||||||
cd $2
|
cd $2
|
||||||
# This checkout syntax works for both branches and tags
|
# This checkout syntax works for both branches and tags
|
||||||
|
|
Loading…
Reference in a new issue