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