diff options
author | Nyaacinth | 2022-06-03 21:44:54 +0800 |
---|---|---|
committer | Nyaacinth | 2022-06-03 21:44:54 +0800 |
commit | 67f339576bd264f03fed99c8ae573510e50ec4f1 (patch) | |
tree | 7b2568c0e302f500c84c5284ea6c0379da8b3c2b /synthv-studio.sh | |
parent | 81b30f1cd70f675d6f3b254d5e4056325b4a9202 (diff) | |
download | aur-synthv-studio-bin.tar.gz |
Update to 2
Diffstat (limited to 'synthv-studio.sh')
-rwxr-xr-x | synthv-studio.sh | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/synthv-studio.sh b/synthv-studio.sh index 8d1739890619..5609e9635b45 100755 --- a/synthv-studio.sh +++ b/synthv-studio.sh @@ -1,19 +1,11 @@ #!/usr/bin/env bash set -e -SVPACKAGE="/opt/synthv-studio/dist.zip" +INFOPATH="/opt/synthv-studio/info.txt" SVPREFIX="$HOME/.synthv-studio" if [ ! -d "$SVPREFIX" ]; then - mkdir "$SVPREFIX" + xdg-open "$INFOPATH" + exit 0 fi -cd "$SVPREFIX" -if [ ! -f "./_installed" ]; then - echo "Installing..." - SVTYPE=`bsdtar -tf "$SVPACKAGE" | head -1` - bsdtar -xf "$SVPACKAGE" - mv "./$SVTYPE/"* "." - rmdir "./$SVTYPE" - touch "./_installed" -fi -exec "./synthv-studio" +exec "$SVPREFIX/synthv-studio" |