Files
scripts/epic-download
2020-12-09 17:35:53 +01:00

5 lines
271 B
Bash
Executable File

#!/bin/bash
game="$(legendary list-games |grep "$1" |awk '{for (I=1;I<=NF;I++) if ($I == "(App" && $(I+1) == "name:") {print $(I+2)};}')"
legendary install "$game"
echo -e "[Desktop Entry]\nName=$1\nExec=legendary launch $game" > ~/.local/share/applications/"$1".desktop