diff --git a/dots/bin/syncDirSetup.sh b/dots/bin/syncDirSetup.sh index 65cfb1a..8252a38 100755 --- a/dots/bin/syncDirSetup.sh +++ b/dots/bin/syncDirSetup.sh @@ -34,8 +34,9 @@ if [[ "${src_dir}" == "${trg_dir}" ]]; then fi if ! [[ -d ${src_dir} ]]; then - echo "creating non-existing source directory '${src_dir}'" - mkdir -p ${src_dir} + echo "error: non-existing source directory '${src_dir}'" + echo "you need to set up sync before you continue!" + exit 1 fi if ! [[ -d ${trg_dir} ]]; then @@ -51,8 +52,6 @@ if mount | grep ${trg_dir} > /dev/null; then else echo "mounting source '${src_dir}' to target '${trg_dir}'." - # example command: - # sudo mount -o bind --source /media/drive2/nass/lo/pCloudSync --target ~/pCloudSync sudo mount -o bind --source ${src_dir} --target ${trg_dir} du --human-readable --max-depth=1 ${trg_dir}