feat: unfunction ue in helper function
1 file changed, +4 -0
+4-0updates.sh
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | #!/usr/bin/bash |
| 2 | 2 | |
| 3 | +# Check for system updates | |
| 3 | 4 | ue() { |
| 4 | 5 | printf "\e[33mWARNING: System is outdated\e[0m\n" |
| 5 | 6 | } |
| @@ -12,6 +13,9 @@ elif command -v dnf; then | ||
| 12 | 13 | dnf check-update &>/dev/null && ue |
| 13 | 14 | fi |
| 14 | 15 | |
| 16 | +unfunction ue | |
| 17 | + | |
| 18 | +# Check updates for dotzsh | |
| 15 | 19 | ( |
| 16 | 20 | cd "$ZDOTDIR" && git fetch origin && if [ "$(git rev-parse HEAD)" != "$(git rev-parse '@{u}')" ]; then |
| 17 | 21 | printf "\e[34mdotzsh update available. Run udz to apply.\e[0m\n" |