Skip to content

Commit

Permalink
github/workflows: Fix bash multi-line error
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Apr 30, 2024
1 parent 1ad6753 commit a09e75e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/build/apt_requirements_postupdate.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/sh

# handle package naming transitions across Ubuntu 20.04 and specific Ubuntu 22.04 arch packaging (e.g. i386)
libodbc_pkg=$(apt-cache --names-only search odbc | awk '{print $1}' | grep -oE "^(libodbc2|libodbcinst2|libodbc1|odbcinst1debian2)$")
[ -z "$libodbc_pkg" ] && libodbc_pkg=$(echo -e "libodbc2\nlibodbcinst2")
libodbc_pkg=$(apt-cache --names-only search odbc | awk '{print $1}' | grep -oE "^(libodbc2|libodbcinst2|libodbc1|odbcinst1debian2)$" | xargs)
[ -z "$libodbc_pkg" ] && libodbc_pkg="libodbc2 libodbcinst2"

cat <<EOF
$libodbc_pkg
EOF
# Output: a space-separated list of packages
echo -n "$libodbc_pkg"

0 comments on commit a09e75e

Please sign in to comment.