Commit 94ebe98a authored by Elouan Martinet's avatar Elouan Martinet

shell/script/bsplist: save list in $TMP

parent fa91591f
......@@ -3,5 +3,11 @@ if [ -z "${ETHOME}" ]; then
echo '$ETHOME is not set.'
exit 1
fi
require find 7z grep sed sort uniq || exit 1
find "${ETHOME}/etmain" -name '*.pk3' -exec 7z l {} \; | grep bsp | sed 's/^.*maps.//' | sed 's/\.bsp$//' | sort | uniq
require find 7z grep sed sort uniq tee || exit 1
if [ -n "$1" ]; then
rm -f "${TMP}/bsplist"
elif [ -f "${TMP}/bsplist" ]; then
cat "${TMP}/bsplist"
exit 0
fi
find "${ETHOME}/etmain" -name '*.pk3' -exec 7z l {} \; | grep bsp | sed 's/^.*maps.//' | sed 's/\.bsp$//' | sort | uniq | tee "${TMP}/bsplist"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment