Merge branch '9988-cwl-arv-hints' closes #9988
[arvados.git] / build / go-package-scripts / prerm
index 4e1399dc6f1d66d2e4e6b10ffb92c76f1d39c571..02772e461c44a1dfdd09a5b2c0925a16939a80cc 100755 (executable)
@@ -5,15 +5,15 @@ set -e
 # NOTE: This package name detection will only work on Debian.
 # If this prerm script ever starts doing work on Red Hat,
 # we'll need to adapt this code accordingly.
-script="$(basename "$0")"
+script="$(basename "${0}")"
 pkg="${script%.prerm}"
 systemd_unit="${pkg}.service"
 
 case "${1}" in
     remove)
         if [ -e /run/systemd/system ]; then
-            systemctl stop "$systemd_unit" || true
-            systemctl disable "$systemd_unit" || true
+            systemctl stop "${systemd_unit}" || true
+            systemctl disable "${systemd_unit}" || true
         fi
         ;;
 esac