diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-09-13 16:40:54 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-09-13 16:40:54 -0400 |
| commit | 5debb8c4b7afeb531b1584595343390e4f07b113 (patch) | |
| tree | 962a4046ad9436c0c5aa838ba075ea472fb1090e /home/repack.sh | |
| parent | 578b04e3f380cfd674cd545f6a4d673b4e046bf5 (diff) | |
| download | alpine-cgit-5debb8c4b7afeb531b1584595343390e4f07b113.tar.gz alpine-cgit-5debb8c4b7afeb531b1584595343390e4f07b113.tar.xz | |
Do not run setup multiple times in a container's life. Also update scripts
Diffstat (limited to 'home/repack.sh')
| -rwxr-xr-x | home/repack.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/home/repack.sh b/home/repack.sh index 25419ea..e494390 100755 --- a/home/repack.sh +++ b/home/repack.sh @@ -2,12 +2,9 @@ set -e set -x -repos="$(find "$HOME" -type d -iname '*.git')" - -IFS=" -" - -for repo in $repos ; do - cd "$repo" - git repack -done +#shellcheck disable=SC2086 +$HOME/list.sh \ + | while read -r repo ; do + cd "$repo" + git repack + done |
