Skip to content

Commit

Permalink
Use command instead of hash
Browse files Browse the repository at this point in the history
nebularg committed Sep 13, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent d8727bf commit 05a57be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
@@ -2145,7 +2145,7 @@ if [[ -n "$manual_changelog" && -f "$topdir/$changelog" ]]; then

# Convert Markdown to BBCode (with HTML as an intermediary) for sending to WoWInterface
# Requires pandoc (http://pandoc.org/)
if [ "$changelog_markup" = "markdown" ] && [ -n "$wowi_convert_changelog" ] && hash pandoc &>/dev/null; then
if [ "$changelog_markup" = "markdown" ] && [ -n "$wowi_convert_changelog" ] && command -v pandoc &>/dev/null; then
wowi_changelog="$releasedir/WOWI-$project_version-CHANGELOG.txt"
pandoc -f commonmark -t html "$changelog_path" | sed \
-e 's/<\(\/\)\?\(b\|i\|u\)>/[\1\2]/g' \
@@ -2981,7 +2981,7 @@ upload_github() {


if [[ -z $skip_upload && -n $archive && -s $archive ]]; then
if ! hash jq &>/dev/null; then
if command -v jq &>/dev/null; then
echo "Skipping upload because \"jq\" was not found."
echo
exit_code=1

0 comments on commit 05a57be

Please sign in to comment.