]> granicus.if.org Git - pgbouncer/commitdiff
Improve shell script portability
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 18 Aug 2018 20:11:43 +0000 (22:11 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 18 Aug 2018 20:11:43 +0000 (22:11 +0200)
Use printf instead of echo -n, for BSD compatibility, similar to
1b6db6c506cbed67fb4012a1217898a4b8e35252.

test/ssl/test.sh

index a86d3bf1820ebcf63b41e75e2b8f4fa19efa747c..7891d53965b194e49b00f3154ab806e9743cd2c4 100755 (executable)
@@ -124,7 +124,7 @@ admin() {
 }
 
 runtest() {
-       echo -n "`date` running $1 ... "
+       printf "`date` running $1 ... "
        eval $1 >$LOGDIR/$1.log 2>&1
        if [ $? -eq 0 ]; then
                echo "ok"