File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# script_tools
22Common installation scripts used in multiple products around the Dexter Industries Galaxy of products.
3+
4+ # to install:
5+ curl https://raw.githubusercontent.com/DexterInd/script_tools/master/install_script_tools.sh | bash
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,34 @@ 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
24- echo $PWD
24+
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
32- echo $PWD
3331
3432# check if /home/pi/Dexter/lib/Dexter exists, if not create it
3533if [ ! -d $DEXTER ] ; then
36- echo " creating $PIHOME /$DEXTER /$LIB /$Dexter "
37- mkdir $DEXTER
34+ mkdir $DEXTER
3835fi
3936cd $DEXTER
40- echo $PWD
37+
4138
4239# check if /home/pi/Dexter/lib/script_tools exists
4340# if yes refresh the folder
4441# 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
42+ if [ ! -d $SCRIPT ] ; then
43+ # clone the folder
44+ sudo git clone https://github.com/DexterInd/script_tools.git
5145else
52- # clone the folder
53- echo " Cloning"
54- sudo git clone https://github.com/DexterInd/script_tools.git
46+ cd $SCRIPT
47+ sudo git pull
5548fi
5649
5750popd
You can’t perform that action at this time.
0 commit comments