ns-tools

Namespace utilities to reuse Open Source packaging efforts.
git clone git://r-36.net/ns-tools
Log | Files | Refs | LICENSE

commit 800fcc11a5f864a0b56852652e7a32cbfab3cd49
parent cecf7ec16ba2637709ecab720a8fd190461f1577
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(-)

diff --git a/bin/ns-unprepare b/bin/ns-unprepare @@ -15,7 +15,7 @@ nsroot="$(ns-root "$1")" [ -e "$nsroot/.ns/preparedonboot" -a $doforce -eq 0 ] && exit 0 [ ! -e "$nsroot/.ns/prepared" -a $doforce -eq 0 ] && exit 0 -if [ $(uid -u) -ne 0 ]; +if [ $(id -u) -ne 0 ]; then printf "ns-unprepare needs to be run with root rights.\n" 2>&1 exit 1