games/steam-sandbox: Fix hidraw input enumeration

This was broken when no files matched the glob /dev/hidraw* (it was
passed literall to bubblewrap, which failed due to it not existing).
pull/64/head
Simon Bruder 2022-05-16 11:36:09 +02:00
parent 23652c4b8f
commit 05da953e22
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ let
steam-sandbox = pkgs.writeShellScriptBin "steam-sandbox" /* bash */ ''
set -euo pipefail
shopt -s nullglob # make for loop work for glob if files do not exist
base_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/steam-sandbox"
mkdir -p "$base_dir"/{.local/share,.steam,.config,.factorio,data}
bubblewrap_args=(