summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaansu2022-09-18 03:36:02 -0700
committerRaansu2022-09-18 03:36:02 -0700
commitc12a7d208ae57eb064c12a82701de543bd16e823 (patch)
tree434ec8f129fddbfa2f8798df3794efbb415a6214
parentb201db646d47dff833d13d399d469d26fac974c5 (diff)
downloadaur-c12a7d208ae57eb064c12a82701de543bd16e823.tar.gz
Ensure IFS is reset
Not reseting IFS may conflict with other hooks and kernel command line variables
-rw-r--r--osk-sdl-hooks4
1 files changed, 3 insertions, 1 deletions
diff --git a/osk-sdl-hooks b/osk-sdl-hooks
index 56512bafbce2..a27b114e10ec 100644
--- a/osk-sdl-hooks
+++ b/osk-sdl-hooks
@@ -57,7 +57,7 @@ EOF
fi
fi
- IFS=,
+ OLDIFS="$IFS"; IFS=,
if [ -n "${osk_kms}" ]; then
for i in $osk_kms
do
@@ -65,6 +65,8 @@ EOF
rmmod -f "$i"
done
fi
+ IFS="$OLDIFS"
+ unset OLDIFS
}
# vim: set ft=sh ts=4 sw=4 et: