mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-22 05:24:45 +00:00
find-in-all.sh misc
This commit is contained in:
parent
e4b5aff941
commit
1a6e763350
@ -16,9 +16,10 @@
|
|||||||
#
|
#
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
TOOLS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
||||||
[ ! -d ./downloaded ] && echo "Error: ./downloaded directory does not exist. Run $SCRIPT_DIR/tools/download-all.sh" && exit 1
|
ROOT_DIR="`dirname "$TOOLS_DIR"`"
|
||||||
[ ! "$(ls -A ./downloaded)" ] && echo "Error: ./downloaded directory is empty. Run $SCRIPT_DIR/tools/download-all.sh" && exit 2
|
[ ! -d "$TOOLS_DIR/downloaded" ] && echo "Error: 'tools/downloaded' directory does not exist. Run tools/download-all.sh" && exit 1
|
||||||
for file in ./downloaded/*; do
|
[ ! "$(ls -A $TOOLS_DIR/downloaded)" ] && echo "Error: 'tools/downloaded' directory is empty. Run tools/download-all.sh" && exit 2
|
||||||
"$SCRIPT_DIR"/find-in-pls.sh "$1" "$file"
|
for file in $TOOLS_DIR/downloaded/*; do
|
||||||
|
$TOOLS_DIR/find-in-pls.sh "$1" "$file"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user