From 8bff6233d271a6254ae1cd6dcd8e3c188274a06b Mon Sep 17 00:00:00 2001 From: oxidized Date: Fri, 21 Jul 2023 18:51:05 +0200 Subject: [PATCH] changed Files: x Signed-off-by: oxidized --- x | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/x b/x index 651dbf9..b3fd3a9 100644 --- a/x +++ b/x @@ -36,6 +36,14 @@ IFS=',' while read -r fqdn path; do # Print the variables (you can perform any actions you need here) fqdn=$(echo $fqdn | tr -d "[:space:]") + #!/bin/bash + + +if [ ! -e "$path" ]; then + echo "File file_path does not exist." + exit 1 +fi + ssh -n -i ${path} ${fqdn} "/export show-sensitive" > config_${fqdn}.rsc echo add