File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1617result=${PWD##*/ }
1718# check if ~/Dexter exists, if not create it
1819if [ ! -d $DEXTER ] ; then
19- echo " creating $PIHOME /$DEXTER "
20- mkdir $DEXTER
20+ mkdir $DEXTER
2121fi
2222# go into $DEXTER
2323cd $DEXTER
2424echo $PWD
2525
2626# check if /home/pi/Dexter/lib exists, if not create it
2727if [ ! -d $LIB ] ; then
28- echo " creating $PIHOME /$DEXTER /$LIB "
29- mkdir $LIB
28+ mkdir $LIB
3029fi
3130cd $LIB
3231echo $PWD
3332
3433# check if /home/pi/Dexter/lib/Dexter exists, if not create it
3534if [ ! -d $DEXTER ] ; then
36- echo " creating $PIHOME /$DEXTER /$LIB /$Dexter "
37- mkdir $DEXTER
35+ mkdir $DEXTER
3836fi
3937cd $DEXTER
4038echo $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
5146else
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
5550fi
5651
5752popd
You can’t perform that action at this time.
0 commit comments