#!/usr/bin/bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # what: update licences # author: njs ➔ fk # started: apr 2022 # # requires: n/a # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ "$EUID" -eq 0 ] then echo "error: do not run as 'root'" exit fi src_dir=/mnt/nas/cb/software/licences trg_dir=/home/poq/.local/share/Cryptomator/mnt/cryptLocal/content/licences if ! [ -d "$src_dir" ] then echo "missing source directory:" echo "$src_dir" exit fi if ! [ -d "$trg_dir" ] then echo "missing target directory:" echo "$trg_dir" exit fi echo copying files from $src_dir to $trg_dir... cp $src_dir/*.txt $trg_dir/