From dc370e4969f8e0948f356e189ef0e382a0a3a446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 22 Jan 2015 10:24:59 +0000 Subject: [PATCH] Improve script portability --- tests/ssl-opt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 23f19ea27..6813754bc 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -372,7 +372,7 @@ fi # Pick a "unique" port in the range 10000-19999. PORT="0000$$" -PORT="1$(echo $PORT | tail -c 5)" +PORT="1$( printf $PORT | tail -c 4 )" # fix commands to use this port P_SRV="$P_SRV server_port=$PORT"