Browse Source

save-to-eye: stop if stop file is present

master
Ivan Kozik 1 month ago
parent
commit
220db19dd6
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      save-to-eye

+ 5
- 0
save-to-eye View File

@@ -35,6 +35,11 @@ cat ~/eye-control/download-parallelism || echo -n 50 > ~/eye-control/download-pa
mkdir -p -- "$complete_dir" mkdir -p -- "$complete_dir"


while read i; do while read i; do
if [[ -f ~/eye-control/stop ]]; then
echo "exiting because stop file is present"
exit 1
fi

echo -E $i echo -E $i


eye_path=$(path-to-eye-path "$i" | sed -r "s,$HOME/stash/,,g") eye_path=$(path-to-eye-path "$i" | sed -r "s,$HOME/stash/,,g")


Loading…
Cancel
Save