diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-24 22:59:37 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-24 22:59:37 +0100 |
commit | 8d17a07c9be5cd9d400644c34ea50177535d15f6 (patch) | |
tree | cac734f62d4c04c898d4e70d1e2ba65f933317ca /sshtool | |
parent | 4b527c4db8060679d21e5bb596bde91ce39df393 (diff) | |
download | nixcfg-8d17a07c9be5cd9d400644c34ea50177535d15f6.tar.gz nixcfg-8d17a07c9be5cd9d400644c34ea50177535d15f6.zip |
reorganize some things
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) |