From b645e2fd7b756f95ffb3b39ad7eeb1bbca16bf01 Mon Sep 17 00:00:00 2001 From: Daniel Jakots Date: Sat, 20 May 2017 21:33:08 -0400 Subject: [PATCH] replace `` with $() --- shellpki.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellpki.sh b/shellpki.sh index a56dd41..1e2e2cf 100755 --- a/shellpki.sh +++ b/shellpki.sh @@ -2,12 +2,12 @@ PREFIX=/etc/openvpn/ssl CONFFILE=$PREFIX/openssl.cnf -OPENSSL=`which openssl` +OPENSSL=$(which openssl) TIMESTAMP=$(/bin/date +"%s") WWWDIR=/var/www/htdocs/vpn/ssl -if [ "`id -u`" != "0" ]; then +if [ "$(id -u)" != "0" ]; then echo "Please become root before running shellpki!" echo echo "Press return to continue..."