diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-01 16:47:39 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-10-01 16:47:39 +1300 |
commit | 4cafcd241a2ff017b3a0983fb4b429a0e4daa2c4 (patch) | |
tree | 72e3601edbde257fe5fee2d877e6a7a1f0018bba | |
parent | Add sue(8) (diff) | |
download | dotfiles-4cafcd241a2ff017b3a0983fb4b429a0e4daa2c4.tar.gz dotfiles-4cafcd241a2ff017b3a0983fb4b429a0e4daa2c4.zip |
Whoops, forgot my option terminators
-rwxr-xr-x | bin/sue | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ user= for file in "${files[@]}" ; do # Use stat(1) to get the file owner - if ! file_owner=$(stat -c %U "$file") ; then + if ! file_owner=$(stat -c %U -- "$file") ; then printf '%s: Failed to run stat(1) on file %s\n' \ "$self" "$file" >&2 exit 1 @@ -63,5 +63,5 @@ done # If we got this far, there's at least one file and all the files are owned by # the same user; we can safely edit them -exec sudoedit -u "$user" "${files[@]}" +exec sudoedit -u "$user" -- "${files[@]}" |