Align script with test script(test.ts)

This commit is contained in:
Tao Chen
2024-10-30 14:26:54 +08:00
parent 32588f22fa
commit a2e39dc738

View File

@@ -2,21 +2,15 @@
BOLD='\033[0;1m'
# Check if filebrowser is installed
if command -v filebrowser &> /dev/null; then
printf "🥳 Filebrowser is already installed. Skipping installation.\n\n$"
else
printf "$${BOLD}Installing Filebrowser...\n\n"
printf "$${BOLD}Installing filebrowser \n\n"
# Install Filebrowser
if curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash; then
printf "🥳 Installation complete! Filebrowser is now installed.\n\n"
else
printf "❌ Installation failed! Please check the logs.\n\n"
exit 1
fi
# Check if filebrowser is installed
if ! command -v filebrowser &> /dev/null; then
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash
fi
printf "🥳 Installation complete! \n\n"
printf "👷 Starting filebrowser in background... \n\n"
ROOT_DIR=${FOLDER}