Skip to content

Commit 27ebf27

Browse files
committed
is this one the right one?
1 parent 0f499ef commit 27ebf27

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

install_script_tools.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,43 @@
1010
PIHOME=/home/pi
1111
DEXTER=Dexter
1212
LIB=lib
13-
SCRIPTS=script_tools
13+
SCRIPT=script_tools
1414

1515
pushd $PIHOME
16-
16+
result=${PWD##*/}
1717
# check if ~/Dexter exists, if not create it
1818
if [ ! -d $DEXTER ] ; then
1919
echo "creating $PIHOME/$DEXTER"
2020
mkdir $DEXTER
2121
fi
2222
# go into $DEXTER
2323
cd $DEXTER
24+
echo $PWD
2425

2526
# check if /home/pi/Dexter/lib exists, if not create it
2627
if [ ! -d $LIB ] ; then
2728
echo "creating $PIHOME/$DEXTER/$LIB"
2829
mkdir $LIB
2930
fi
3031
cd $LIB
32+
echo $PWD
33+
34+
# check if /home/pi/Dexter/lib/Dexter exists, if not create it
35+
if [ ! -d $DEXTER ] ; then
36+
echo "creating $PIHOME/$DEXTER/$LIB/$Dexter"
37+
mkdir $DEXTER
38+
fi
39+
cd $DEXTER
40+
echo $PWD
3141

3242
# check if /home/pi/Dexter/lib/script_tools exists
3343
# if yes refresh the folder
3444
# if not, clone the folder
3545
if [ -d $SCRIPT ] ; then
3646
echo "Pulling"
3747
cd $SCRIPT
48+
echo $PWD
49+
echo "now in $PIHOME/$DEXTER/$LIB/$SCRIPT"
3850
sudo git pull
3951
else
4052
# clone the folder

0 commit comments

Comments
 (0)