aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index e7384d8..fb55f60 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -2,7 +2,13 @@
cd $(dirname $0)
-for NIXHOST in $(ls node); do
+if [ -z "$@" ]; then
+ NIXHOSTLIST=$(ls node)
+else
+ NIXHOSTLIST="$@"
+fi
+
+for NIXHOST in $NIXHOSTLIST; do
NIXHOST=${NIXHOST%.*}
if [ -z "$SSH_USER" ]; then