Created
December 13, 2022 06:37
-
-
Save bovender/c715f3504334f3c6d162c466c998b82f to your computer and use it in GitHub Desktop.
Run latest Nextcloud Appimage available.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIR=~/local/Downloads | |
CLIENT=$(ls "$DIR"/Nextcloud-* 2>/dev/null | tail -n 1) | |
echo $CLIENT | |
if [ -e "$CLIENT" ]; then | |
echo "Starting Nextcloud client in background..." | |
set +x | |
LC_ALL=en_US "$CLIENT" & disown | |
else | |
echo "Error: Nextcloud client not found in $DIR" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment