Skip to content

Commit

Permalink
CI: allow for using variable version in auto update scripts as an a…
Browse files Browse the repository at this point in the history
…lternative to `webVer`

this makes creating auto update scripts easier as the test urls no longer need to be modified with a different variable name from the ones used in actual scripts
  • Loading branch information
theofficialgman committed Jan 25, 2024
1 parent 875c023 commit a744545
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/update_github_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
# webVer=$(get_release subhra74/xdm)
# all_url="https://github.com/subhra74/xdm/releases/download/${webVer}/xdm-setup-${webVer}.tar.xz"

# alternatively, this script also supports using the variable "version" instead of "webVer"
if [ -n "$version" ]; then
webVer=("${version[@]}")
fi

# make sure webVer variable is supplied by the sourcing script
if [ -n "$webVer" ]; then
#iterate through all webVer supplied if an array
Expand Down Expand Up @@ -162,6 +167,7 @@ echo '![badge-issue][badge-issue]'" webVer variable is missing for $app_name upd
fi

unset webVer
unset version
unset pi_apps_ver_32
unset pi_apps_ver_64
unset pi_apps_ver
Expand Down

0 comments on commit a744545

Please sign in to comment.