From 05da953e22a3c78e38f1150ea62c0b29365ed81b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Mon, 16 May 2022 11:36:09 +0200 Subject: [PATCH] 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). --- users/simon/modules/games.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/users/simon/modules/games.nix b/users/simon/modules/games.nix index b35e625..febe421 100644 --- a/users/simon/modules/games.nix +++ b/users/simon/modules/games.nix @@ -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=(