academic/sword-data-kjv: Replaced backtick cmdsub.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-07-15 02:31:17 -04:00 committed by Willy Sudiarto Raharjo
parent 55cd4de890
commit 1be3ca95b2
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -55,7 +55,7 @@ rm -rf $PRGNAM-$VERSION
#check if sword is installed and get data location, otherwise use default
DATADEST="/usr/share/sword/"
if [ -e /etc/sword.conf ]; then
DATADEST=`cat /etc/sword.conf|grep DataPath|awk -F"=" '{print $2}'`
DATADEST=$( cat /etc/sword.conf|grep DataPath|awk -F"=" '{print $2}' )
if [ "x$DATADEST" = "x" ]||[ "x$DATDEST" = "x/" ]; then
#this should not happen, give message and stop build
#it doesn't stop deliberately malicious configuration, but at least