mirror of
https://github.com/a-bad-dev/luanti-appimages-aarch64.git
synced 2026-06-09 00:31:31 +00:00
small fixes
This commit is contained in:
parent
4f071a2cba
commit
45605a703a
1 changed files with 7 additions and 6 deletions
13
test.sh
13
test.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue