diff options
author | tv <tv@xso> | 2011-09-06 22:06:43 +0200 |
---|---|---|
committer | tv <tv@xso> | 2011-09-06 22:06:43 +0200 |
commit | dafd45a75f6c433485d2ec0fd4b9539b89e59175 (patch) | |
tree | b0583718d69ba972e198827c40523b46c6b90b41 /meta | |
parent | 3eacd8b8d5d0bde9ac4381ae1e92833aa10610a8 (diff) |
//meta/install: try to be more intelligent... untested^_^
Diffstat (limited to 'meta')
-rwxr-xr-x | meta/install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/install b/meta/install index 6bb04fec..b74b7f02 100755 --- a/meta/install +++ b/meta/install @@ -3,7 +3,7 @@ set -euf cd $(dirname $(readlink -f $0)) -id=`ls -lnd . | awk '{print$3}'` +id=`ls -ld . | awk '{print$3}'` update=$PWD/bin/update echo "#" @@ -19,8 +19,9 @@ if test -e /update; then ls -l /update fi -if test `id -u` != $id; then +if test `id -un` != $id; then echo "# and remember to allow yourself to [32msudo -u $id /update[m" + echo "# i.e. add [32m`id -un` ($id) NOPASSWD:/update[m" fi echo "#[35m^D[m" |