summaryrefslogtreecommitdiffstats
path: root/core/includes
diff options
context:
space:
mode:
authorSimon Rettberg2020-07-30 11:28:03 +0200
committerSimon Rettberg2020-07-30 11:28:03 +0200
commita3ee631c539884d42aff141deef68c7bfcf49259 (patch)
tree3dede5a5812e9b91d07128f1b98e71c41a533b05 /core/includes
parent[slx-issue] relax regex for netboot version (diff)
downloadmltk-a3ee631c539884d42aff141deef68c7bfcf49259.tar.gz
mltk-a3ee631c539884d42aff141deef68c7bfcf49259.tar.xz
mltk-a3ee631c539884d42aff141deef68c7bfcf49259.zip
[inc/autoclone] Restore cwdirectory
Diffstat (limited to 'core/includes')
-rw-r--r--core/includes/downloader.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/includes/downloader.inc b/core/includes/downloader.inc
index 3596fa58..4d4d23ba 100644
--- a/core/includes/downloader.inc
+++ b/core/includes/downloader.inc
@@ -138,6 +138,7 @@ autoclone () {
if [ -n "$checkout" ]; then
cd "$dstdir/$dst" || perror "cd error. check redbook."
git checkout "$checkout" || perror "Could not checkout $checkout from $url"
+ cd -
fi
fi
done