From c37e64eb77755d9eb4a1f16e0b0e93f3c523485a Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Thu, 1 Jun 2017 16:50:40 +0800 Subject: Print out the command at as-root --- functions.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'functions.sh') 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 -- cgit v1.2.3