summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-06 15:22:22 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-12 09:26:54 +0200
commit609b8eb2d3dd8a8b5fb66fbba51628cb4a3cf499 (patch)
treecb23fe980b16dedec00d7e6af814f874110a1860 /bin
parent6fafca9c03163ebf9445394c2fde45d00d0ae972 (diff)
Use hostname as argument, if provided.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/stream.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/stream.sh b/bin/stream.sh
index 80518e9..24c3539 100755
--- a/bin/stream.sh
+++ b/bin/stream.sh
@@ -2,7 +2,7 @@
set -e
-target_host=morla
+target_host=${1:-morla}
if [ "$target_host" = "$(hostname --short)" ]; then
target_ip=127.0.0.1
else