This commit is contained in:
tuxwarrior
2024-05-03 13:32:50 -05:00
parent 1af5520b63
commit b8c1e9e9d0

View File

@@ -6,17 +6,14 @@ this_file_name=`basename "$0"`
echo ":: $this_file_name :: [K] ::"
syncdir_env_var=SYNCDIR_${HOSTNAME}
src_dir=${!syncdir_env_var}
src_dir=${!syncdir_env_var} # '!' to use the name and not the value
trg_dir=~/syncDir
echo
echo "\$src_dir: ${src_dir}"
echo "\$trg_dir: ${trg_dir}"
echo
exit
if [[ "${src_dir}" == "" ]]; then
echo "environment variable SYNCDIR_${HOSTNAME} is not set."
echo ""