Skip to content

Commit 80ba5b4

Browse files
committed
Fixed deploy script
1 parent be87eb6 commit 80ba5b4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

utils/deploy.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ npm run build:prod -- --silent
2828
echo "Prepare for publishing site..."
2929

3030
git clone $SRC_URL $TMP_PATH -q
31-
cd $TMP_PATH > /dev/null;
31+
pushd $TMP_PATH > /dev/null;
3232
git checkout master -q
3333
git rm -r ./ -q
3434

@@ -45,4 +45,6 @@ git push origin master -q
4545

4646
echo "Makeup cleaning up..."
4747

48+
popd > /dev/null
49+
4850
rm -rf $TMP_PATH

0 commit comments

Comments
 (0)