2025-01-21 02:15:36 +01:00

18 lines
446 B
Bash

#!/bin/bash
createDestinations() {
for destination in ${destinations[@]}
do
if ! [ -d "${destinationpath["$destination"]}" ]
then
if ! mkdir -p "${destinationpath["$destination"]}"
then
echo "$destination: Could not create ${destinationpath["$destination"]}!"
exit $EINVDEST
fi
fi
destinationid["$destination"]=$(
InsertIfUnset destinations <<<"name $destination ${destinationenabled[\"$destination\"]}"
)
done
}