fix: shell syntax typos

This commit is contained in:
Ben Grande 2024-07-15 10:08:19 +02:00
parent 04d1aaf63e
commit cf432651b3
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
2 changed files with 9 additions and 8 deletions

View file

@ -7,7 +7,7 @@
set -eu
# shellcheck disable=3028
hostname="$(hostname)}"
hostname="$(hostname)"
test "${hostname}" = "dom0" || { echo "Must be run from dom0" >&2; exit 1; }
uid="$(id -u)"
test "${uid}" = "0" || exec sudo "${0}"