diff --git a/scripts/zola.sh b/scripts/zola.sh index 5dcbea3..ca52974 100755 --- a/scripts/zola.sh +++ b/scripts/zola.sh @@ -94,6 +94,7 @@ clean() { # $3: Author in format deploy() { cd $PROJECT_ROOT + original_branch=$(git branch --show-current) tmp_dir=$(mktemp -d) cp -r $2/* $tmp_dir git checkout --orphan $1 @@ -104,6 +105,7 @@ deploy() { git commit \ --author="$3" \ --message="new deploy: $(date --iso-8601=seconds)" + git checkout $original_branch } check_arg $1