Skip to content

Instantly share code, notes, and snippets.

@bovender
Created December 13, 2022 06:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bovender/c715f3504334f3c6d162c466c998b82f to your computer and use it in GitHub Desktop.
Save bovender/c715f3504334f3c6d162c466c998b82f to your computer and use it in GitHub Desktop.
Run latest Nextcloud Appimage available.
#!/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