mirror of
https://github.com/RustyRaptor/AppImages.git
synced 2026-12-03 15:35:23 -07:00
Update getapp
This commit is contained in:
1 parent
ae79177ebb
commit
40e821f743
1 file changed
+6
-4
+6
-4
@@ -3,10 +3,12 @@
|
||||
# Usage:
|
||||
# getapp Firefox
|
||||
# For the list of available apps, see https://bintray.com/probono/AppImages/
|
||||
set +e
|
||||
|
||||
set -e
|
||||
ARCH=$(arch)
|
||||
PKGPATH=$(wget -c "https://bintray.com/probono/AppImages/$1/_latestVersion#files" -O - | grep pkgPath | cut -d '"' -f 6)
|
||||
PKGPATH=$(wget -q "https://bintray.com/probono/AppImages/$1/_latestVersion#files" -O - | grep pkgPath | cut -d '"' -f 6)
|
||||
VERSION=$(echo $PKGPATH | cut -d "/" -f 5)
|
||||
ls "$1-$VERSION-$ARCH.AppImage"|| wget "https://bintray.com/probono/AppImages/download_file?file_path=$1-$VERSION-"$(arch)".AppImage" -O "$1-$VERSION-$ARCH.AppImage"
|
||||
URL="https://bintray.com/probono/AppImages/download_file?file_path=$1-$VERSION-$ARCH.AppImage"
|
||||
ls "$1-$VERSION-$ARCH.AppImage" || wget "$URL" -O "$1-$VERSION-$ARCH.AppImage"
|
||||
chmod a+x "$1-$VERSION-$ARCH.AppImage"
|
||||
exec ./"$1-$VERSION-$ARCH.AppImage"
|
||||
./"$1-$VERSION-$ARCH.AppImage"
|
||||
Reference in new issue
Block a user