Audio Quake launcher added. Not working quite right yet.
This commit is contained in:
@ -244,7 +244,7 @@ download() {
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
if [[ $downloadError -eq 0 ]]; then
|
||||
if [[ $downloadError -ne 0 ]]; then
|
||||
rm -fv "${cache}/${dest}"
|
||||
dialog --backtitle "Linux Game Manager" \
|
||||
--infobox "Error downloading \"${dest}\". Installation cannot continue." -1 -1 --stdout
|
||||
@ -398,7 +398,7 @@ game_installer() {
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
if [[ -e "${0%/*}/.launch/${game}.game" ]] && ! [[ -L "${0%/*}/.launch/${game.sh}" ]]; then
|
||||
if [[ -e "${0%/*}/.launch/${game}.game" ]] && ! [[ -L "${0%/*}/.launch/${game}.sh" ]]; then
|
||||
ln -srf "${0%/*}/.launch/${game}.game" "${0%/*}/.launch/${game}.sh"
|
||||
fi
|
||||
exit 0
|
||||
@ -494,7 +494,7 @@ game_launcher() {
|
||||
mapfile -t lines < <(
|
||||
sed '/^$/d' "${configFile}" 2> /dev/null
|
||||
if [[ -d ".launch" ]]; then
|
||||
find "${0%/*}/.launch" -maxdepth 1 -type f -iname "*.sh" -exec bash -c '
|
||||
find -L "${0%/*}/.launch" -maxdepth 1 -type f -iname "*.sh" -exec bash -c '
|
||||
for f; do
|
||||
[[ $(head -n1 "$f") == "#"* ]] && continue
|
||||
name="${f##*/}"
|
||||
|
Reference in New Issue
Block a user