diff options
author | Ben Sima <ben@bsima.me> | 2018-06-16 13:26:12 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-06-16 13:26:12 -0700 |
commit | 9bac288eb419bc573e9a30d0861c068565b3c533 (patch) | |
tree | 233b561bf9cfe3033bd8108634be945a4c808429 /me | |
parent | 82b67260a52a56e6c07207c1e140e30dd45d4e38 (diff) |
Fix ending cd
Diffstat (limited to 'me')
-rwxr-xr-x | me | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -4,7 +4,7 @@ cur=$PWD -function usage { +function usage { echo "Usage: $0 [status]" 1>&2 exit 1 } @@ -13,11 +13,12 @@ function allStatuses { for d in ~/.password-store ~/bin ~/config ~/org ~/web ~/me do cd "${d}" - + dirname=${d/\/home\/ben/\~} status=$(unbuffer git status -sb | tr -d '#') printf "%-20s:: %s\n" "${dirname}" "${status}" done + cd "${cur}" exit 0 } @@ -27,5 +28,3 @@ while true; do *) usage ;; esac done - -cd "${cur}" |