Skip to content

Commit f1d6720

Browse files
committedMar 11, 2019
quote "uname -s" to prevent word splitting
1 parent 02c2752 commit f1d6720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ cleanup() {
2323
rm -rf "$tmpdir"
2424

2525
# remove cache files until we are under $cachesize
26-
if [ `uname -s` == "SunOS" ] ; then ducmd="du -ks" ; else ducmd="du -kc" ; fi
26+
if [ "$(uname -s)" == "SunOS" ] ; then ducmd="du -ks" ; else ducmd="du -kc" ; fi
2727
while [[ "$($ducmd "$tmproot" | tail -1 | cut -f1)" -gt "$C_CACHE_SIZE" ]]; do
2828
[[ -z "$(ls -A "$tmproot")" ]] && break
2929
rm -rf "$(find "$tmproot" | tail -n1)"

0 commit comments

Comments
 (0)
Failed to load comments.