csl-clio/Utilitaires/get-filters.sh

13 lines
225 B
Bash
Executable File

#!/bin/bash
FILTERS_FILE="$1"
while read -r filter ; do
if [ "${filter##*.}" == lua ] ; then
filterCall='-L'
else
filterCall='--filter'
fi
echo "$filterCall" "$filter"
done < "$FILTERS_FILE"