quieter error when no arg

Wed, 27 Jan 2016 19:31:49 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 27 Jan 2016 19:31:49 -0500
changeset 248
6aef60121f57
parent 247
c0035582fdd7
child 249
5bba2e094584

quieter error when no arg

.homedir-push.sh file | annotate | diff | comparison | revisions
--- a/.homedir-push.sh
+++ b/.homedir-push.sh
@@ -1,4 +1,6 @@
 #!/bin/sh
 set -eu
 
-hg archive -t tgz -p . - | ssh $1 tar xzv
+TARGET=$1
+
+hg archive -t tgz -p . - | ssh $TARGET tar xzv

mercurial