mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-10-07 09:23:52 +02:00
7 lines
167 B
Bash
7 lines
167 B
Bash
#!/bin/bash
|
|
PORTPARAM=""
|
|
if [[ "$#" > 2 ]]; then
|
|
PORTPARAM=$(printf -- "--port %q" "$3")
|
|
fi
|
|
bin/gamedig.js --output pretty --debug --type "$1" --host "$2" $PORTPARAM
|