Skip to content

Commit

Permalink
Clame Antivirus: fix unstable upstream url and tag on thunar plugin
Browse files Browse the repository at this point in the history
corrects d2d2fcb

if returned version is of the form "0.08-2" then that gets used for both the tag and in the debian filename

if returned version is of the form "0.08" then that gets used for the tag and the debian filename "-1" gets added onto the end of the version
  • Loading branch information
theofficialgman committed Feb 22, 2024
1 parent b269e0f commit 13834e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/updates/Clam Antivirus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
webVer[0]=$(get_release dave-theunsub/clamtk)
webVer[1]=$(get_release dave-theunsub/thunar-sendto-clamtk)
all_url[0]="https://github.com/dave-theunsub/clamtk/releases/download/v${webVer[0]}/clamtk_${webVer[0]}-1_all.deb"
all_url[1]="https://github.com/dave-theunsub/thunar-sendto-clamtk/releases/download/v${webVer[1]}/thunar-sendto-clamtk_${webVer[1]}_all.deb"
deb_minor_version=${webVer[1]/${webVer[1]%-*}/}
all_url[1]="https://github.com/dave-theunsub/thunar-sendto-clamtk/releases/download/v${webVer[1]}/thunar-sendto-clamtk_${webVer[1]%-*}${deb_minor_version:--1}_all.deb"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
3 changes: 2 additions & 1 deletion apps/Clam Antivirus/install
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ install_packages clamav https://github.com/dave-theunsub/clamtk/releases/downloa
#if thunar file manager installed then also install clamtk thunar extension
if command -v thunar >/dev/null ;then
status "Installing ClamAV Thunar extension because you have Thunar installed..."
install_packages https://github.com/dave-theunsub/thunar-sendto-clamtk/releases/download/v${version2}/thunar-sendto-clamtk_${version2}-1_all.deb
deb_minor_version=${version2/${version2%-*}/}
install_packages https://github.com/dave-theunsub/thunar-sendto-clamtk/releases/download/v${version2}/thunar-sendto-clamtk_${version2%-*}${deb_minor_version:--1}_all.deb
fi
exit 0

0 comments on commit 13834e9

Please sign in to comment.