mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-12-22 06:15:48 +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; )";
|
||||
[ ! -d ./downloaded ] && echo "Error: ./downloaded directory does not exist. Run $SCRIPT_DIR/tools/download-all.sh" && exit 1
|
||||
[ ! "$(ls -A ./downloaded)" ] && echo "Error: ./downloaded directory is empty. Run $SCRIPT_DIR/tools/download-all.sh" && exit 2
|
||||
for file in ./downloaded/*; do
|
||||
"$SCRIPT_DIR"/find-in-pls.sh "$1" "$file"
|
||||
TOOLS_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
|
||||
ROOT_DIR="`dirname "$TOOLS_DIR"`"
|
||||
[ ! -d "$TOOLS_DIR/downloaded" ] && echo "Error: 'tools/downloaded' directory does not exist. Run tools/download-all.sh" && exit 1
|
||||
[ ! "$(ls -A $TOOLS_DIR/downloaded)" ] && echo "Error: 'tools/downloaded' directory is empty. Run tools/download-all.sh" && exit 2
|
||||
for file in $TOOLS_DIR/downloaded/*; do
|
||||
$TOOLS_DIR/find-in-pls.sh "$1" "$file"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user