diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-26 20:59:42 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-26 20:59:42 +0200 |
commit | ccf1c051d96bc84349da873c7bf70a0de9338953 (patch) | |
tree | 6409f47b0d63134c43631d1d3defb91066a1dcdc /edit | |
parent | c33ff191110ae2505334792952e0ee551e06698f (diff) | |
download | utils-ccf1c051d96bc84349da873c7bf70a0de9338953.tar utils-ccf1c051d96bc84349da873c7bf70a0de9338953.zip |
Improved whitespace handling -.-
Diffstat (limited to 'edit')
-rwxr-xr-x | edit | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,7 +1,9 @@ #!/bin/sh +FILE=$(readlink -f "$1") + if [ $(id -u) -eq 0 ]; then - exec sudo -u neoraider emacsclient -nw /sudo::$(readlink -f $1) + exec sudo -u "$SUDO_USER" emacsclient -nw "/sudo::$FILE" else - exec emacsclient -nw $(readlink -f $1) + exec emacsclient -nw "$FILE" fi |