mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
kiss: Drop old_ifs
This commit is contained in:
parent
1d15a04fe1
commit
b80df1a12e
8
kiss
8
kiss
@ -129,7 +129,7 @@ pkg_find() {
|
|||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
IFS=$old_ifs
|
IFS=
|
||||||
|
|
||||||
# A package may also not be found due to a repository not being
|
# 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.
|
# readable by the current user. Either way, we need to die here.
|
||||||
@ -1086,7 +1086,7 @@ pkg_updates() {
|
|||||||
# Create a list of all repositories.
|
# Create a list of all repositories.
|
||||||
# See [1] at top of script.
|
# See [1] at top of script.
|
||||||
# shellcheck disable=2046,2086
|
# shellcheck disable=2046,2086
|
||||||
{ IFS=:; set -- $KISS_PATH; IFS=$old_ifs; }
|
{ IFS=:; set -- $KISS_PATH; IFS=; }
|
||||||
|
|
||||||
# Update each repository in '$KISS_PATH'. It is assumed that
|
# Update each repository in '$KISS_PATH'. It is assumed that
|
||||||
# each repository is 'git' tracked.
|
# each repository is 'git' tracked.
|
||||||
@ -1383,10 +1383,6 @@ main() {
|
|||||||
# that it doesn't change beneath us.
|
# that it doesn't change beneath us.
|
||||||
pid=${KISS_PID:-$$}
|
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
|
# 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
|
# etc when this is set. We don't need unicode and a speed up is always
|
||||||
# welcome.
|
# welcome.
|
||||||
|
Loading…
Reference in New Issue
Block a user