Files
lnx-arch/dots/bin/obsolete/obsolete.updateLicences.sh
committer@tuxwarrior 8f9f25bf72 wip
2026-02-24 18:35:15 -05:00

35 lines
724 B
Bash
Executable File

#!/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/