summaryrefslogtreecommitdiff
blob: d52d5129b7c7c9d08d6ef261960e1108cab3e943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- build.sh	2005-01-01 19:18:44.290385166 +0000
+++ build.sh	2005-01-01 19:22:45.846161383 +0000
@@ -44,8 +44,8 @@
 #
 # Try to find wish8.3, tclsh8.3 and openssl
 #
-WISH=`FIND "$WISH" "" wish8.4 wish8.3 wish`
-TCLSH=`FIND "$TCLSH" "" tclsh8.4 tclsh8.3 tclsh`
+WISH=`FIND "$WISH" "" wish wish8.4 wish8.3`
+TCLSH=`FIND "$TCLSH" "" tclsh tclsh8.4 tclsh8.3`
 OPENSSL=`FIND "$OPENSSL" "$OPENSSL_SEARCH_PATH" openssl ssl`
 
 #
@@ -88,7 +88,7 @@
 if test "$USE_OPENSSL" = "true" -a -x "$OPENSSL"
 then
   echo "Found OpenSSL program: $OPENSSL"
-  ENC=`$OPENSSL list-cipher-commands|sort|egrep "^($ENC)\$"|head -1`
+  ENC=`$OPENSSL list-cipher-commands|sort|egrep "^($ENC)\$"|head -n 1`
   if test -z "$ENC"
   then
     echo "Could not find a suitable encryption algorithm."