From 8d17a07c9be5cd9d400644c34ea50177535d15f6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sat, 24 Dec 2022 22:59:37 +0100 Subject: reorganize some things --- sshtool | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sshtool') 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) -- cgit v1.2.3