- Commit
- 475ade52c6004bb936a370941803226b9abbc3ee
- Parent
- 55d4dba6d76c33b27ae134621ef03db8faca0879
- Author
- Pablo <pablo-escobar@riseup.net>
- Date
Fixed a minor coloring bug in the script
A simple configuration manager
Fixed a minor coloring bug in the script
1 file changed, 5 insertions, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | config | 9 | 5 | 4 |
diff --git a/config b/config @@ -90,6 +90,7 @@ case "$1" in do echo "Adding '$item' to the list of dotfiles" realpath "$item" >> "$dotfiles_list" + call_git add "$item" done ;; @@ -123,18 +124,18 @@ case "$1" in if grep modified "$config_git_status" > /dev/null; then - printf '\033[0;33mmodified files:\n' + printf '\033[0;33mmodified files:\033[0m\n' awk '/modified/ { print $2 }' "$config_git_status" \ | xargs -r realpath \ - | xargs -r -n 1 printf ' %s\033[0m\n' + | xargs -r -n 1 printf '\033[0;33m %s\033[0m\n' fi if grep deleted "$config_git_status" > /dev/null; then - printf '\033[0;31mdeleted files:\n' + printf '\033[0;31mdeleted files:\033[0m\n' awk '/deleted/ { print $2 }' "$config_git_status" \ | xargs -r realpath \ - | xargs -r -n 1 printf ' %s\033[0m\n' + | xargs -r -n 1 printf '\033[0;31m %s\033[0m\n' fi rm "$config_git_status"