]> git.notmuchmail.org Git - notmuch/commitdiff
configure: SC2006: Use $(..) instead of legacy `..`
authorJani Nikula <jani@nikula.org>
Wed, 13 Apr 2016 18:32:46 +0000 (21:32 +0300)
committerDavid Bremner <david@tethera.net>
Mon, 2 May 2016 00:20:05 +0000 (21:20 -0300)
Fix shellcheck warnings.

configure

index 4fc31ccf8e79264b96ecb96d92794f295eb0205d..0c6cdb01bbe0132b38b5809950a6ee4d1786708b 100755 (executable)
--- a/configure
+++ b/configure
@@ -250,7 +250,7 @@ if [ -z "$LIBDIR" ] ; then
     libdir_expanded="${PREFIX}/lib"
 else
     # very non-general variable expansion
-    libdir_expanded=`echo "$LIBDIR" | sed "s|\\${prefix}|${PREFIX}|g; s|\\$prefix/|${PREFIX}/|; s|//*|/|g"`
+    libdir_expanded=$(echo "$LIBDIR" | sed "s|\\${prefix}|${PREFIX}|g; s|\\$prefix/|${PREFIX}/|; s|//*|/|g")
 fi
 
 cat <<EOF
@@ -542,7 +542,7 @@ fi
 libdir_in_ldconfig=0
 
 printf "Checking which platform we are on... "
-uname=`uname`
+uname=$(uname)
 if [ $uname = "Darwin" ] ; then
     printf "Mac OS X.\n"
     platform=MACOSX