Fixing the id -u check in ns-unprepare. - ns-tools - Namespace utilities to reuse Open Source packaging efforts.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 800fcc11a5f864a0b56852652e7a32cbfab3cd49
(DIR) parent cecf7ec16ba2637709ecab720a8fd190461f1577
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 17 May 2014 13:33:21 +0200
Fixing the id -u check in ns-unprepare.
Diffstat:
bin/ns-unprepare | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/bin/ns-unprepare b/bin/ns-unprepare
@@ -15,7 +15,7 @@ nsroot="$(ns-root "$1")"
t[ -e "$nsroot/.ns/preparedonboot" -a $doforce -eq 0 ] && exit 0
t[ ! -e "$nsroot/.ns/prepared" -a $doforce -eq 0 ] && exit 0
-if [ $(uid -u) -ne 0 ];
+if [ $(id -u) -ne 0 ];
tthen
printf "ns-unprepare needs to be run with root rights.\n" 2>&1
exit 1