aboutsummaryrefslogtreecommitdiff
path: root/sshtool
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-24 22:59:37 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-24 22:59:37 +0100
commit8d17a07c9be5cd9d400644c34ea50177535d15f6 (patch)
treecac734f62d4c04c898d4e70d1e2ba65f933317ca /sshtool
parent4b527c4db8060679d21e5bb596bde91ce39df393 (diff)
downloadnixcfg-8d17a07c9be5cd9d400644c34ea50177535d15f6.tar.gz
nixcfg-8d17a07c9be5cd9d400644c34ea50177535d15f6.zip
reorganize some things
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)