Skip to content

Commit 3b96566

Browse files
committed
remove debugging info
1 parent 27ebf27 commit 3b96566

1 file changed

Lines changed: 11 additions & 16 deletions

File tree

install_script_tools.sh

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
#####################################################################
33
#####################################################################
44
#
5-
# curl
5+
# to install:
6+
# curl https://raw.githubusercontent.com/DexterInd/script_tools/master/install_script_tools.sh | bash
67
#
78
#####################################################################
89
#####################################################################
@@ -16,42 +17,36 @@ pushd $PIHOME
1617
result=${PWD##*/}
1718
# check if ~/Dexter exists, if not create it
1819
if [ ! -d $DEXTER ] ; then
19-
echo "creating $PIHOME/$DEXTER"
20-
mkdir $DEXTER
20+
mkdir $DEXTER
2121
fi
2222
# go into $DEXTER
2323
cd $DEXTER
2424
echo $PWD
2525

2626
# check if /home/pi/Dexter/lib exists, if not create it
2727
if [ ! -d $LIB ] ; then
28-
echo "creating $PIHOME/$DEXTER/$LIB"
29-
mkdir $LIB
28+
mkdir $LIB
3029
fi
3130
cd $LIB
3231
echo $PWD
3332

3433
# check if /home/pi/Dexter/lib/Dexter exists, if not create it
3534
if [ ! -d $DEXTER ] ; then
36-
echo "creating $PIHOME/$DEXTER/$LIB/$Dexter"
37-
mkdir $DEXTER
35+
mkdir $DEXTER
3836
fi
3937
cd $DEXTER
4038
echo $PWD
4139

4240
# check if /home/pi/Dexter/lib/script_tools exists
4341
# if yes refresh the folder
4442
# if not, clone the folder
45-
if [ -d $SCRIPT ] ; then
46-
echo "Pulling"
47-
cd $SCRIPT
48-
echo $PWD
49-
echo "now in $PIHOME/$DEXTER/$LIB/$SCRIPT"
50-
sudo git pull
43+
if [ ! -d $SCRIPT ] ; then
44+
# clone the folder
45+
sudo git clone https://github.com/DexterInd/script_tools.git
5146
else
52-
# clone the folder
53-
echo "Cloning"
54-
sudo git clone https://github.com/DexterInd/script_tools.git
47+
cd $SCRIPT
48+
echo $PWD
49+
sudo git pull
5550
fi
5651

5752
popd

0 commit comments

Comments
 (0)