Add variable lookup in heredoc

This commit is contained in:
Price Hiller 2021-12-26 00:18:29 -06:00
parent 280d39ac4e
commit 7ea7b90994

View File

@ -9,8 +9,8 @@ cd "${STEAM_DIRECTORY}"
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
chmod -R 755 "${STEAM_DIRECTORY}"
cat << '__EOF__' > /usr/local/bin/steamcmd
${STEAM_DIRECTORY}/steamcmd.sh "${@}"
cat << __EOF__ > /usr/local/bin/steamcmd
${STEAM_DIRECTORY}/steamcmd.sh \"\${@}\"
__EOF__
chmod 755 /usr/local/bin/steamcmd