X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/382f262d2c9c2c104808fa4bb38fb395e28c85bc..d18557927ac033c2e33c1f7770881367b252f329:/build/go-package-scripts/prerm diff --git a/build/go-package-scripts/prerm b/build/go-package-scripts/prerm index 4e1399dc6f..02772e461c 100755 --- a/build/go-package-scripts/prerm +++ b/build/go-package-scripts/prerm @@ -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