X-Git-Url: https://git.danix.xyz/?p=lxqt-slackware.git;a=blobdiff_plain;f=DOWNLOAD.sh;fp=DOWNLOAD.sh;h=d931ce91d01025b773d1efe9ec774fb281a60435;hp=7de99cab7ea8c81239ad65f91ea3923dd539c923;hb=c01fcab132e43e8d2a603db692a66d867acf99ee;hpb=b1415a29714c04507d04d3b8a84c9457f7bd67a6 diff --git a/DOWNLOAD.sh b/DOWNLOAD.sh index 7de99ca..d931ce9 100755 --- a/DOWNLOAD.sh +++ b/DOWNLOAD.sh @@ -25,10 +25,13 @@ $GIT submodule init || echo "error initializing submodules" >> $ERROR_LOG # checkout every submodule $GIT submodule update --remote --rebase || echo "error during checkout of submodules" >> $ERROR_LOG +# return to main directory +cd $CWD + # we grab the module's version numbers before deleting everything git related sh ${CWD}/GRAB_VERSION.sh $SRCDIR # we are done with git, so let's cleanup from all the unwanted git folders and files -find . -name '.git*' -mindepth 1 -exec rm -rfv '{}' \; || echo "error during removal of git files from source" >> $ERROR_LOG +find $SRCDIR -name '.git*' -mindepth 1 -exec rm -rfv '{}' \; || echo "error during removal of git files from source" >> $ERROR_LOG # ALL DONE