summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2017-06-01 16:50:40 +0800
committerIru Cai <mytbk920423@gmail.com>2017-06-01 17:49:13 +0800
commitc37e64eb77755d9eb4a1f16e0b0e93f3c523485a (patch)
treec489ee3945cbd1138a116dc18a6f3c1e6d6cc541
parentf8d49f1101ebca896a1608f523793a00f3189004 (diff)
downloadliveusb-builder-c37e64eb77755d9eb4a1f16e0b0e93f3c523485a.tar.xz
Print out the command at as-root
-rw-r--r--functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
index c533e07..cbf25aa 100644
--- a/functions.sh
+++ b/functions.sh
@@ -96,6 +96,7 @@ getdiskbypart() {
}
as-root() {
+ echo as-root "$*"
if [ "$UID" == 0 ]; then
"$@"
elif type -p sudo > /dev/null; then