正确报错

This commit is contained in:
2025-10-22 13:14:54 +08:00
parent f0c5e82a52
commit 9511a85158
3 changed files with 15 additions and 1 deletions

View File

@@ -118,6 +118,13 @@ case "$1" in
command=$1
shift
amber-pm-debug aptss "$command" "$@"
exit_code=$?
if [ $exit_code -eq 0 ]; then
log.info "Operation successful"
else
log.error "Error: Operation failed"
exit $exit_code
fi
;;
remove|autoremove|purge|autopurge)
@@ -125,6 +132,13 @@ case "$1" in
command=$1
shift
amber-pm-debug aptss "$command" "$@"
exit_code=$?
if [ $exit_code -eq 0 ]; then
log.info "Operation successful"
else
log.error "Error: Operation failed"
exit $exit_code
fi
amber-pm-debug amber-pm-dstore-patch
;;
run)