diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-07-02 22:09:54 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-07-02 22:09:54 +0200 |
commit | f26c6cf48e6c9e89909b4abb1dcf81cc2f39a86b (patch) | |
tree | 21a5554ac08993bafcb8c7f5eb3fc4e35a40b3be | |
parent | abb5f84bd3936685d8515bd1b6f4c6622fda8a6e (diff) | |
download | xutil-f26c6cf48e6c9e89909b4abb1dcf81cc2f39a86b.tar.gz |
with-git: Add -s option
-rwxr-xr-x | with-git | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,3 +1,5 @@ #!/bin/sh +[ x"$1" = x"-s" ] && { s=$1; shift; } || s= "$@" +[ -z "$s" ] || git status exec repl "${GIT:-git}" |