Should work now #16

Merged
AustrianToast merged 14 commits from dev into main 2023-04-04 10:42:44 +02:00
3 changed files with 6 additions and 6 deletions
Showing only changes of commit 3a976e50b5 - Show all commits

View File

@ -1,4 +1,4 @@
VER := "v2.0.0"
VER := "v2.0.1"
install:
@echo "==> Installing update {{VER}} into /usr/local/bin"

View File

@ -1,4 +1,4 @@
VER = "v2.0.0"
VER = "v2.0.1"
install:
@echo "==> Installing update $(VER) into /usr/local/bin"

8
update
View File

@ -4,7 +4,7 @@
source "$HOME"/.config/update.conf
VER="2.0.0"
VER="2.0.1"
IGREEN="\033[0;92m" # Intense Green
IYELLOW="\033[0;93m" # Intense Red
NC="\033[0m" # Text Reset
@ -32,12 +32,12 @@ Help() {
}
check_for_dblck() {
if [ -f /var/lib/pacman/db.lck ]; do {
if [ -f /var/lib/pacman/db.lck ]; then {
echo -e "${IYELLOW}->${NC} /var/lib/pacman/db.lck exists"
echo -e "${IYELLOW}->${NC} there might be another instance of pacman running. exiting..."
exit 1
}
done
fi
}
delete_oldest_backup() {
@ -86,7 +86,7 @@ interrupt_function() {
exit 1
}
[[ $1 ]] || before_backup && echo -e "${IGREEN}pre-backup complete${NC}" && update_with_pacman_wrapper
[[ -z $1 ]] && before_backup && echo -e "${IGREEN}pre-backup complete${NC}" && update_with_pacman_wrapper
if [[ ${1:0:2} = -- ]]; then
case "${1:2}" in
help)