From 3b8b7ce305823d0ef41c75a032bbb08f497a8c64 Mon Sep 17 00:00:00 2001 From: NP-Hardass Date: Tue, 11 Apr 2017 18:19:26 -0400 Subject: wine.eselect: use failglob --- wine.eselect | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wine.eselect') diff --git a/wine.eselect b/wine.eselect index 94741b4..7846140 100644 --- a/wine.eselect +++ b/wine.eselect @@ -810,6 +810,8 @@ set_symlinks() { local link local links + local glob_state=$(shopt -p failglob) + shopt -s failglob store_config "${CONFIG_DIR}/links/${v}" symlink_dirs "bin" store_config "${CONFIG_DIR}/links/${v}" "bin" "" @@ -856,6 +858,7 @@ set_symlinks() { sed -i "s:Exec=.*:Exec=wine${v_arg#-} start /unix %f:" ${desktop} || die "Failed to edit desktop file" desktop_database_update || die "Failed to update xorg desktop database" + eval "${glob_state}" unset_dir_env } -- cgit v1.2.3-65-gdbad