bin: failure containment for st and git-ln
This commit is contained in:
parent
e7af80f105
commit
283e99ffae
|
@ -2,4 +2,4 @@
|
|||
set -o pipefail
|
||||
upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null)
|
||||
count=$(expr ${upCount:-0} + 3 \& ${upCount:-0} \> 3 \| 6)
|
||||
git --no-pager lo -$count --color=always --graph HEAD @{push} | head -9 || git --no-pager lo -7
|
||||
git --no-pager lo -$count --color=always --graph HEAD @{upstream} | head -9 || git --no-pager lo -7
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Query local syncthing REST API
|
||||
test $# -eq 0 && echo "Usage: st <command> [args...]" && exit 1
|
||||
subscript="$(which "$(basename $0)-$1" 2>/dev/null)"
|
||||
if test -f "$subscript"
|
||||
then shift && $subscript "$@"
|
||||
|
|
Loading…
Reference in New Issue