#!/bin/sh

# Get all installed zip files
zips=$(ls /usr/share/games/eduke32/*.zip)

# Create opts for voidsw
for zip in ${zips[@]}; do
	opts+="-g ${zip} "
done

# Switch to /tmp, for writing there the log file and run voidsw with set opts
cd /tmp && voidsw ${opts}
