From 3dfad56c614ddec9922d2827bd3ea5b885776af1 Mon Sep 17 00:00:00 2001 From: tuxwarrior Date: Mon, 6 May 2024 17:23:42 -0500 Subject: [PATCH] u --- dots/bin/syncDirSetup.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dots/bin/syncDirSetup.sh b/dots/bin/syncDirSetup.sh index f78d879..3737824 100755 --- a/dots/bin/syncDirSetup.sh +++ b/dots/bin/syncDirSetup.sh @@ -62,17 +62,15 @@ the_file=/etc/fstab if [ -f "${the_file}" ]; then if ! more ${the_file} | grep 'syncDir' then - #echo "" | sudo tee -a ${the_file} - #echo "# auto mount syncDir" | sudo tee -a ${the_file} - #echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file} - - sudo echo "" >> ${the_file} - sudo echo "# auto mount syncDir" >> ${the_file} - sudo echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" >> ${the_file} + echo "" | sudo tee -a ${the_file} + echo "# auto mount syncDir" | sudo tee -a ${the_file} + echo "${src_dir} ${trg_dir} auto defaults,nofail,nobootwait,bind 0 2" | sudo tee -a ${the_file} + echo echo "auto mount of syncDir added to '${the_file}'" else - echo "auto mount of syncDir already exists in '${the_file}'" + echo + echo "auto mount of syncDir already existed in '${the_file}'" fi fi