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