aboutsummaryrefslogtreecommitdiff
path: root/system/epson-printer-utility/fixrm
diff options
context:
space:
mode:
Diffstat (limited to 'system/epson-printer-utility/fixrm')
-rw-r--r--system/epson-printer-utility/fixrm4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/epson-printer-utility/fixrm b/system/epson-printer-utility/fixrm
index e1c5c21315143..a1d58a08c91c3 100644
--- a/system/epson-printer-utility/fixrm
+++ b/system/epson-printer-utility/fixrm
@@ -11,8 +11,8 @@
FNAME="README.models"
MAXLEN=${MAXLEN:-72}
#make sure MAXLEN is a integer bigger than 39
-MAXLEN=`echo $MAXLEN|awk '($1<40) {print "40"} (int($1)>39) {print int($1) }'`
-if [ -e $FNAME ]&&[ `cat $FNAME|head -n1|awk '{print length($0)}'` -gt $MAXLEN ]; then
+MAXLEN=$(echo $MAXLEN|awk '($1<40) {print "40"} (int($1)>39) {print int($1) }')
+if [ -e $FNAME ]&&[ $(cat $FNAME|head -n1|awk '{print length($0)}') -gt $MAXLEN ]; then
#only do something if the file exists, and thefirst line is longer than it
#should be.
TMPFILE=rmtmp