aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-04-20 14:08:12 +0000
committermerakor <cem@ckyln.com>2020-04-20 14:08:12 +0000
commit22100bc4f4a3c7e6e0eee88523677974f55108dc (patch)
tree5a65bdd06aac4170acdb4820f6ab7687a2354dea
parent59c8a313f94ff1ccfa8e0ecaeb47381eb9ecd6f2 (diff)
downloadcpt-22100bc4f4a3c7e6e0eee88523677974f55108dc.tar.gz
kiss: fix old_ifs
FossilOrigin-Name: f70e686a90d6951c666f0528b3607a840a38441797ef5e709b5fef16021a937e
-rwxr-xr-xkiss8
1 files changed, 2 insertions, 6 deletions
diff --git a/kiss b/kiss
index f38e923..9b0244c 100755
--- a/kiss
+++ b/kiss
@@ -132,7 +132,7 @@ pkg_find() {
done
done
- IFS=$old_ifs
+ unset IFS
# A package may also not be found due to a repository not being
# readable by the current user. Either way, we need to die here.
@@ -1073,7 +1073,7 @@ pkg_fetch() {
# Create a list of all repositories.
# See [1] at top of script.
# shellcheck disable=2046,2086
- { IFS=:; set -- $KISS_PATH; IFS=$old_ifs; }
+ { IFS=:; set -- $KISS_PATH; unset IFS; }
# Update each repository in '$KISS_PATH'. It is assumed that
# each repository is 'git' tracked.
@@ -1389,10 +1389,6 @@ main() {
# that it doesn't change beneath us.
pid=${KISS_PID:-$$}
- # Store the original value of IFS so we can revert back to it if the
- # variable is ever changed.
- old_ifs=$IFS
-
# Force the C locale to speed up things like 'grep' which disable unicode
# etc when this is set. We don't need unicode and a speed up is always
# welcome.