Color-enhance 'bundle update' output

This commit is contained in:
2022-05-10 09:34:10 -07:00
parent c65124ba53
commit 22a9ebc549

View File

@@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# shellcheck disable=SC2016
usage() { usage() {
cat << EOT cat << EOT
Usage: Usage:
@@ -44,7 +45,7 @@ clone_bundles() {
case "$1" in case "$1" in
ls) repos 'echo -e "[red]@@[reset] [green]$(git -C @@ remote get-url origin)[reset]"' ;; ls) repos 'echo -e "[red]@@[reset] [green]$(git -C @@ remote get-url origin)[reset]"' ;;
update) repos 'git -C @@ pull 2>&1 | sed "s|^|[@@] |g"' ;; update) repos 'git -C @@ pull 2>&1 | sed "s|^|[green][@@][reset] |g"' ;;
save) repos 'echo -e "@@ $(git -C @@ remote get-url origin)"' | tee bundles.txt ;; save) repos 'echo -e "@@ $(git -C @@ remote get-url origin)"' | tee bundles.txt ;;
clone) clone_bundles ;; clone) clone_bundles ;;
?*) echo "Unknown command: $1" ;; ?*) echo "Unknown command: $1" ;;