aboutsummaryrefslogtreecommitdiff
path: root/sshtool
diff options
context:
space:
mode:
Diffstat (limited to 'sshtool')
-rwxr-xr-xsshtool5
1 files changed, 5 insertions, 0 deletions
diff --git a/sshtool b/sshtool
index 262f0e3..24c19af 100755
--- a/sshtool
+++ b/sshtool
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
CMDFILE="$1"
+if [ -z "$CMDFILE" ] || [ ! -f "$CMDFILE" ]; then
+ echo "sshtool is not meant to be called on its own."
+ echo "See scripts that use it (e.g. deploy_nixos) for usage examples."
+ exit 1
+fi
shift 1
cd $(dirname $CMDFILE)