summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter2022-06-27 20:32:23 +0100
committerPeter2022-06-27 20:32:23 +0100
commit44a147083cb96140b7bedf2df8089f3b71862bb7 (patch)
tree866655bd38a670f8aa94e95547f1ebf20c2053c4
parentad0847d07c905e3efc2e348fe2d1e5ed4523009d (diff)
downloaddotfiles-44a147083cb96140b7bedf2df8089f3b71862bb7.tar.gz
dotfiles-44a147083cb96140b7bedf2df8089f3b71862bb7.tar.bz2
dotfiles-44a147083cb96140b7bedf2df8089f3b71862bb7.zip
Fix a couple (minor) shellcheck errors
-rwxr-xr-x.local/bin/rechin22
1 files changed, 0 insertions, 22 deletions
diff --git a/.local/bin/rechin b/.local/bin/rechin
index 9c30c39..a629413 100755
--- a/.local/bin/rechin
+++ b/.local/bin/rechin
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-application="gallery-dl"
-site="boards.4chan.org"
-site_domain="$(echo $site | cut -f2 -d.)"
-
-if [ ! -d "$PWD/$application" ] && [ ! -d "$PWD/$application/$site_domain" ]; then
- echo "Directories to read from are missing, exiting."
- exit 0
-fi
-
-for board in $(ls $application/$site_domain/)
-do
- loop_count=1
- total_count=$(ls $application/$site_domain/$board | wc -l)
- for thread in $(ls $application/$site_domain/$board | cut -f1 -d" " | tac)
- do
- $application "https://$site/$board/thread/$thread"
- printf "\nLoop count: %s/%s\n" "$loop_count" "$total_count"
- loop_count=$(expr $loop_count + 1)
- done
-done