diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-07-08 17:52:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-07-08 17:52:08 +0200 |
commit | 428e5ee7a20fafd882752cbe34eb37fd5813eecd (patch) | |
tree | 3505629ce2325fec4df378fcfe97d1553c8c14a1 /park-disk | |
parent | 9a611148dac3f4cc2401c558f6dc066b5d8ee96c (diff) | |
download | bin-428e5ee7a20fafd882752cbe34eb37fd5813eecd.tar.gz bin-428e5ee7a20fafd882752cbe34eb37fd5813eecd.tar.xz |
park-disk: Fix error when running as root
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'park-disk')
-rwxr-xr-x | park-disk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |