Skip to content

Commit

Permalink
Allow to override bin-dir for ./utils/generate-ttl.sh
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Mar 16, 2024
1 parent ba985c6 commit 9f4fcf9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions utils/generate-ttl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ fi

set -e

if [ ! -d bin ]; then
BIN_DIR=${1}

if [ -z "${BIN_DIR}" ]; then
BIN_DIR=bin
fi

if [ ! -d ${BIN_DIR} ]; then
echo "Please run this script from the source root folder"
exit
fi
Expand All @@ -28,7 +34,7 @@ else
fi
fi

cd bin
cd ${BIN_DIR}
FOLDERS=`find . -type d -name \*.lv2`

for i in ${FOLDERS}; do
Expand Down

0 comments on commit 9f4fcf9

Please sign in to comment.