I am stupid

This commit is contained in:
René Fuhry 2023-04-03 20:02:41 +02:00 committed by GitHub
parent b380df76ca
commit 3a976e50b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

8
update
View File

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