Browse Source

Stash changes before git self-update

bryan 5 tháng trước cách đây
mục cha
commit
49ae5879be
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -1577,7 +1577,7 @@ update() {
     local before_pull_hash after_pull_hash
     before_pull_hash=$(git -C "$SCRIPT_DIR" rev-parse HEAD)
     # Run a git stash in case there are local changes
-    execute git stash --quiet
+    execute git -C "$SCRIPT_DIR" stash --quiet
     if git -C "$SCRIPT_DIR" pull | grep -qv "Already up to date"; then
       return 0
     fi