sync/home_external/.bash_aliases_branched
2023-07-06 12:51:55 +02:00

17 lines
303 B
Bash

#!/usr/bin/env bash
updatePackages() {
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="--no-confirm";
fi
executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
}
doUpdatePackages() {
pamac update $1;
pamac remove --orphans --cascade $1;
}