I am stupid
This commit is contained in:
parent
b380df76ca
commit
3a976e50b5
2
justfile
2
justfile
@ -1,4 +1,4 @@
|
||||
VER := "v2.0.0"
|
||||
VER := "v2.0.1"
|
||||
|
||||
install:
|
||||
@echo "==> Installing update {{VER}} into /usr/local/bin"
|
||||
|
2
makefile
2
makefile
@ -1,4 +1,4 @@
|
||||
VER = "v2.0.0"
|
||||
VER = "v2.0.1"
|
||||
|
||||
install:
|
||||
@echo "==> Installing update $(VER) into /usr/local/bin"
|
||||
|
8
update
8
update
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user