Skip to content

Commit

Permalink
Merge pull request #750 from ivan-hc/main
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
ivan-hc authored Jul 3, 2024
2 parents 9cbc6f6 + 2b41e98 commit 129015c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/x86_64/plexamp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ chmod a+x /opt/$APP/remove
mkdir tmp
cd ./tmp

version=$(curl -Ls https://www.plex.tv/plexamp/#downloads | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u | grep -i appimage)
version=$(curl -Ls https://raw.githubusercontent.com/flathub/com.plexamp.Plexamp/master/com.plexamp.Plexamp.yaml | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u | grep -i appimage)
wget $version
echo "$version" >> /opt/$APP/version
cd ..
Expand All @@ -32,7 +32,7 @@ cat >> /opt/$APP/AM-updater << 'EOF'
#!/usr/bin/env bash
APP=plexamp
version0=$(cat /opt/$APP/version)
version=$(curl -Ls https://www.plex.tv/plexamp/#downloads | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u | grep -i appimage)
version=$(curl -Ls https://raw.githubusercontent.com/flathub/com.plexamp.Plexamp/master/com.plexamp.Plexamp.yaml | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | sort -u | grep -i appimage)
if [ $version = $version0 ]; then
echo "Update not needed!"
else
Expand Down

0 comments on commit 129015c

Please sign in to comment.