summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-07-08 17:52:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-07-08 17:52:08 +0200
commit428e5ee7a20fafd882752cbe34eb37fd5813eecd (patch)
tree3505629ce2325fec4df378fcfe97d1553c8c14a1
parent9a611148dac3f4cc2401c558f6dc066b5d8ee96c (diff)
downloadbin-428e5ee7a20fafd882752cbe34eb37fd5813eecd.tar.gz
bin-428e5ee7a20fafd882752cbe34eb37fd5813eecd.tar.xz
park-disk: Fix error when running as root
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xpark-disk2
1 files changed, 1 insertions, 1 deletions
diff --git a/park-disk b/park-disk
index f92124d..58f6aff 100755
--- a/park-disk
+++ b/park-disk
@@ -3,4 +3,4 @@ _sudo=''
[[ -z "$1" ]] && { echo "Usage: $(basename "$0") <device>"; exit 1; }
[[ ${UID} -ne 0 ]] && _sudo='sudo'
-exec "${_sudo}" udisksctl power-off -b "$1"
+exec ${_sudo} udisksctl power-off -b "$1"