diff options
Diffstat (limited to 'sshtool')
-rwxr-xr-x | sshtool | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |