|
@@ -78,24 +78,26 @@ if [ ${confirm} = "Y" ]; then
|
|
|
echo "Reading source and beginning to move..."
|
|
|
|
|
|
|
|
|
- if ! [ -d {src}]; then
|
|
|
+ if ! [ -d ${src} ]; then
|
|
|
echo "Source directory does not exist, exiting..."
|
|
|
exit 2
|
|
|
fi
|
|
|
|
|
|
|
|
|
- if [ -d {dst}]; then
|
|
|
+ if [ -d ${dst} ]; then
|
|
|
mkdir -p -m 700 ${dst}
|
|
|
fi
|
|
|
|
|
|
- find ${dst} -
|
|
|
+
|
|
|
+
|
|
|
+ find ${src} -type f -print -exec mkdir -p ${dst}/$( stat -f %Sm -t %Y-%m-%d {} ) ';'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- dst_subdir="${dst}/${file_creation_date}${note}"
|
|
|
+
|
|
|
|
|
|
- file_new_name="$(read creation date and time, format)-${file}"
|
|
|
+
|
|
|
|
|
|
|
|
|
|