Fix possible noclobber issue in colorls.sh as well
This commit is contained in:
parent
afe488cc19
commit
6f1fcbc4c6
@ -35,7 +35,7 @@ if [ -z "$USER_LS_COLORS" ]; then
|
||||
|
||||
TMP="`mktemp .colorlsXXX --tmpdir=/tmp`"
|
||||
|
||||
[ -e "$INCLUDE" ] && cat "$INCLUDE" > $TMP
|
||||
[ -e "$INCLUDE" ] && cat "$INCLUDE" >> $TMP
|
||||
grep -v '^INCLUDE' "$COLORS" >> $TMP
|
||||
|
||||
eval "`dircolors --sh $TMP 2>/dev/null`"
|
||||
|
Loading…
Reference in New Issue
Block a user