small fixes

This commit is contained in:
a-bad-dev 2026-04-14 18:25:40 -03:00 committed by GitHub
commit 45605a703a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

13
test.sh
View file

@ -5,10 +5,10 @@
VERSION="5.15.1" VERSION="5.15.1"
BOLD="\033[1m" BOLD="\x1b[1m"
RED="\033[31m" RED="\x1b[31m"
GREEN="\033[32m" GREEN="\x1b[32m"
RESET="\033[0m" RESET="\x1b[0m"
# make sure we are root # make sure we are root
if [ "$(id -u)" != 0 ]; then if [ "$(id -u)" != 0 ]; then
@ -21,6 +21,7 @@ if [ "$(ps aux | grep luanti | wc -l)" != 1 ]; then
echo -e "${BOLD}${RED}No Luanti processes may be running while this script is run.${RESET}" echo -e "${BOLD}${RED}No Luanti processes may be running while this script is run.${RESET}"
exit 1 exit 1
fi fi
# check if the AppImage even exists # check if the AppImage even exists
echo -e "${BOLD}Checking if AppImage exists...${RESET}" echo -e "${BOLD}Checking if AppImage exists...${RESET}"
@ -63,7 +64,7 @@ DEPS=(
echo -e "${BOLD}Removing dependencies...${RESET}" echo -e "${BOLD}Removing dependencies...${RESET}"
for d in "${DEPS[@]}"; do for d in "${DEPS[@]}"; do
apt remove $d -y apt remove ${d} -y
done done
# test the AppImage # test the AppImage
@ -87,7 +88,7 @@ echo -e "${BOLD}Reinstalling dependencies...${RESET}"
# reinstall the dependencies # reinstall the dependencies
for d in "${DEPS[@]}"; do for d in "${DEPS[@]}"; do
apt-get install -y $d apt-get install -y ${d}
done done
exit 0 exit 0