Update various scripts
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# TODO: add interative selection of "kind of commission" for output folder
|
||||
|
||||
cur_dir=`pwd`
|
||||
furry_commission_ideas_path=/mnt/e/home/Documents/sync/gdrive-zakdragonbites/furry-commission-ideas
|
||||
furry_commission_ideas_path=/mnt/e/home/Documents/sync/nextcloud-pudimxyz-cloud/furry-commission-ideas
|
||||
furry_commission_ideas_urls_filename="urls.txt"
|
||||
scripts_path=~/repos/cloudalb/personal-devboot/scripts/shell
|
||||
|
||||
@@ -22,7 +22,7 @@ media_url=`sed 's:/*$::' <<< "$media_url"`
|
||||
|
||||
cd $furry_commission_ideas_path
|
||||
|
||||
existing_folders=($(find * -type d))
|
||||
existing_folders=($(find * -type d -not -path artists -not -path kinks -not -path ideas))
|
||||
|
||||
filtered_existing_folders=()
|
||||
|
||||
@@ -77,6 +77,7 @@ input_select_folder() {
|
||||
}
|
||||
|
||||
if [ -z "$selected_folder" ]; then
|
||||
printf "\n"
|
||||
echo "[INFO] Folders:"
|
||||
for ((i = 0; i < ${#existing_folders[@]}; i++)); do
|
||||
foldername=${existing_folders[$i]}
|
||||
@@ -95,8 +96,10 @@ fi
|
||||
|
||||
cd $selected_folder
|
||||
|
||||
if grep -qE "$media_url" -i "$furry_commission_ideas_urls_filename"; then
|
||||
if [ -f "$furry_commission_ideas_urls_filename" ] && grep -qE "$media_url" -i "$furry_commission_ideas_urls_filename"; then
|
||||
printf "\n"
|
||||
echo "[INFO] This folder already has the media informed."
|
||||
echo "[INFO] Exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user