aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNP-Hardass <np.hardass@gmail.com>2017-04-11 18:19:26 -0400
committerNP-Hardass <np.hardass@gmail.com>2017-04-11 18:19:26 -0400
commit3b8b7ce305823d0ef41c75a032bbb08f497a8c64 (patch)
tree67045d9c2717c0447f1a84d02a477c80d28703dc /wine.eselect
parentwine.eselect: Handle setting links when encountering orphaned links (diff)
downloadeselect-wine-3b8b7ce305823d0ef41c75a032bbb08f497a8c64.tar.gz
eselect-wine-3b8b7ce305823d0ef41c75a032bbb08f497a8c64.tar.bz2
eselect-wine-3b8b7ce305823d0ef41c75a032bbb08f497a8c64.zip
wine.eselect: use failglob
Diffstat (limited to 'wine.eselect')
-rw-r--r--wine.eselect3
1 files changed, 3 insertions, 0 deletions
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
}