commit cd9e1e60f3b4beca0d9218d58abc6f75e8b16a26 parent 1d64e56bac0e93a806f513284e3d918b94e71f16 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Thu, 23 Aug 2018 16:05:18 +0200 Atom packages now included in updatemaster Diffstat:
M | dotfiles/bin/updatemaster | | | 15 | ++++++++++++++- |
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/dotfiles/bin/updatemaster b/dotfiles/bin/updatemaster @@ -260,7 +260,7 @@ else echo -e "Sudo not authorised." fi -### TLDR Database ### +### TLDR DATABASE ### if command -v tldr &> /dev/null; then echo_progress "\n-- TLDR database update" tldr --update @@ -272,5 +272,18 @@ if command -v tldr &> /dev/null; then fi fi +### ATOM PACKAGES ### +if command -v apm &> /dev/null; then + echo_progress "\n-- Atom package upgrades" + if apm outdated &> /dev/null; then + apm upgrade --no-confirm; + echo_succ "All packages upgraded." + else + echo_err "Cannot upgrade Atom packages. Please do so manually." + fi +else + echo_err "Atom not installed (or APM not functioning properly)." +fi +notify "APM Upgrade Complete" "See Terminal for info." echo_progress "\n-- All systems checked. \e[1;32m\u2714\e[0m" notify "All systems checked." "Everything you indicated should be upgraded."