irongit

feat: unfunction ue in helper function

huncholanehuncholaneauthored
parent da4bf4acommit 4356bc6e19c013b23d59eca85f42790bee6f7ed1Browse files

1 file changed, +4 -0

+4-0updates.sh
@@ -1,5 +1,6 @@
11 #!/usr/bin/bash
22
3+# Check for system updates
34 ue() {
45 printf "\e[33mWARNING: System is outdated\e[0m\n"
56 }
@@ -12,6 +13,9 @@ elif command -v dnf; then
1213 dnf check-update &>/dev/null && ue
1314 fi
1415
16+unfunction ue
17+
18+# Check updates for dotzsh
1519 (
1620 cd "$ZDOTDIR" && git fetch origin && if [ "$(git rev-parse HEAD)" != "$(git rev-parse '@{u}')" ]; then
1721 printf "\e[34mdotzsh update available. Run udz to apply.\e[0m\n"