Skip to content

Commit

Permalink
Align script with test script(test.ts)
Browse files Browse the repository at this point in the history
  • Loading branch information
IamTaoChen committed Oct 30, 2024
1 parent 32588f2 commit a2e39dc
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions filebrowser/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,15 @@

BOLD='\033[0;1m'

printf "$${BOLD}Installing filebrowser \n\n"

# 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"

# 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
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}
Expand Down

0 comments on commit a2e39dc

Please sign in to comment.