Make pop quiet

This commit is contained in:
2025-02-22 15:25:08 -05:00
parent ee154bf79c
commit 9c5ce26b57

View File

@@ -1594,7 +1594,7 @@ update() {
before_pull_hash=$(git -C "$SCRIPT_DIR" rev-parse HEAD) before_pull_hash=$(git -C "$SCRIPT_DIR" rev-parse HEAD)
# Stash local changes before pull # Stash local changes before pull
execute git -C "$SCRIPT_DIR" stash --quiet execute git -C "$SCRIPT_DIR" stash push --quiet
# Pull latest changes # Pull latest changes
debug "Running git pull in $SCRIPT_DIR" debug "Running git pull in $SCRIPT_DIR"
@@ -1605,11 +1605,11 @@ update() {
# If the commit hash has changed, an update occurred # If the commit hash has changed, an update occurred
if [[ "$before_pull_hash" != "$after_pull_hash" ]]; then if [[ "$before_pull_hash" != "$after_pull_hash" ]]; then
echo "Detected installJRMC update, restarting" echo "Detected installJRMC update, restarting"
execute git -C "$SCRIPT_DIR" stash pop execute git -C "$SCRIPT_DIR" stash pop --quiet
exec "$SCRIPT_PATH" "$@" "--no-update" exec "$SCRIPT_PATH" "$@" "--no-update"
fi fi
fi fi
execute git -C "$SCRIPT_DIR" stash pop execute git -C "$SCRIPT_DIR" stash pop --quiet
else else
debug "Not in a git repository or not the installJRMC repository. Checking for updates via download." debug "Not in a git repository or not the installJRMC repository. Checking for updates via download."