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 /e | |
parent | c33ff191110ae2505334792952e0ee551e06698f (diff) | |
download | utils-ccf1c051d96bc84349da873c7bf70a0de9338953.tar utils-ccf1c051d96bc84349da873c7bf70a0de9338953.zip |
Improved whitespace handling -.-
Diffstat (limited to 'e')
-rwxr-xr-x | e | 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 -n /sudo::$(readlink -f $1) + exec sudo -u "$SUDO_USER" emacsclient -n "/sudo::$FILE" else - exec emacsclient -n $(readlink -f $1) + exec emacsclient -n "$FILE" fi |