Skip to content

Commit 87d42fe

Browse files
authored
Merge pull request #33 from cheungpat/fix-ifs
Set $IFS using printf
2 parents 7075b4d + 1ad3735 commit 87d42fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-archive-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ trap 'cleanup' QUIT EXIT
4444
# For security reasons, explicitly set the internal field separator
4545
# to newline, space, tab
4646
OLD_IFS=$IFS
47-
IFS="\n \t"
47+
IFS="$(printf '\n \t')"
4848

4949
function cleanup () {
5050
rm -f $TMPFILE

0 commit comments

Comments
 (0)