Skip to content

Instantly share code, notes, and snippets.

@thorsummoner
Last active September 18, 2016 07:18
Show Gist options
  • Save thorsummoner/8549aa146c08b12a759ef8c2d323b3bc to your computer and use it in GitHub Desktop.
Save thorsummoner/8549aa146c08b12a759ef8c2d323b3bc to your computer and use it in GitHub Desktop.
steamscript
#!/bin/bash
# steamcmd doesn't handle the shebang line, so lets remove it :\ Woo
# Use Tail to strip first line (print all lines starting at 2) of our input file
# Call steamcmd with automatic login and automatic exit
steamcmd +login ${STEAMLOGIN:-thorsummoner0} +runscript <(tail -n+2 $1) +exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment