diff --git a/scripts/pkg-manager.sh b/scripts/pkg-manager.sh index feff9398..3bf07350 100644 --- a/scripts/pkg-manager.sh +++ b/scripts/pkg-manager.sh @@ -58,7 +58,22 @@ cmd_install() eval run sudo $env apt-get $global_opts install "$@" ;; *) - fatal "Tried to install to unsupported platform \"$ID\"" + fatal "Tried to install on unsupported platform \"$ID\"" + ;; + esac +} + +cmd_refresh() +{ + case $ID in + opensuse|suse) + eval run sudo $env zypper $global_opts refresh "$@" + ;; + debian) + eval run sudo $env apt-get $global_opts update "$@" + ;; + *) + fatal "Tried to update unsupported platform \"$ID\"" ;; esac }