Explorar o código

added change directory to linux-update.sh

CauseFX %!s(int64=4) %!d(string=hai) anos
pai
achega
6adcb09d0f
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      scripts/linux-update.sh

+ 3 - 1
scripts/linux-update.sh

@@ -21,7 +21,9 @@ URL=https://github.com/causefx/Organizr/archive/${BRANCH}.zip
 mkdir -p $UPGRADEPATH                                                  && \
 curl -sSL ${URL} > $UPGRADEFILE                                        && \
 unzip $UPGRADEFILE -d $UPGRADEPATH                                     && \
-cp -r $FOLDER/ $SCRIPTPATH/../                                         && \
+cd $FOLDER                                                             && \
+cp -r ./ $SCRIPTPATH/../                                               && \
+cd $SCRIPTPATH                                                         && \
 rm $UPGRADEFILE                                                        && \
 rm -rf $FOLDER                                                         && \
 rm -rf $UPGRADEPATH                                                    && \