mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 20:05:07 +00:00
replace echo with printf; fixes compilation when shell is dash and
language is not English git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19435 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6b0da6eb35
commit
9d2c260488
@ -10,7 +10,7 @@ curr=""
|
||||
|
||||
while read -r line; do
|
||||
if echo "$line" | grep '^#define' > /dev/null 2>&1; then
|
||||
curr=`echo "$line" | cut -d ' ' -f 2`
|
||||
curr=`printf "%s\n" "$line" | cut -d ' ' -f 2`
|
||||
if grep "^#define $curr[ ]" $1 > /dev/null 2>&1; then
|
||||
curr=""
|
||||
fi
|
||||
@ -21,6 +21,6 @@ while read -r line; do
|
||||
fi
|
||||
|
||||
if [ -n "$curr" ]; then
|
||||
echo "$line"
|
||||
printf "%s\n" "$line"
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user