summaryrefslogtreecommitdiffstats
path: root/scripts/compose_pki_core_packages
diff options
context:
space:
mode:
authorMatthew Harmsen <mharmsen@pki.usersys.redhat.com>2016-04-26 11:06:10 -0600
committerMatthew Harmsen <mharmsen@pki.usersys.redhat.com>2016-04-26 14:53:33 -0600
commit4708983b88d33cb1b1c2cc913499c18dfc7d6959 (patch)
tree32c9301340a090b4fb8a69b5ac46c547e23ae7da /scripts/compose_pki_core_packages
parent33d02d644a1f61bce25698ec28a8ce9890ee3067 (diff)
downloadpki-4708983b88d33cb1b1c2cc913499c18dfc7d6959.tar.gz
pki-4708983b88d33cb1b1c2cc913499c18dfc7d6959.tar.xz
pki-4708983b88d33cb1b1c2cc913499c18dfc7d6959.zip
fix bashisms
- PKI TRAC Ticket #2249 - fix bashisms - changes 'source' to '.' - changes 'bash' to 'sh'
Diffstat (limited to 'scripts/compose_pki_core_packages')
-rwxr-xr-xscripts/compose_pki_core_packages8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/compose_pki_core_packages b/scripts/compose_pki_core_packages
index 21fa5508b..c79004d14 100755
--- a/scripts/compose_pki_core_packages
+++ b/scripts/compose_pki_core_packages
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# BEGIN COPYRIGHT BLOCK
# (C) 2010 Red Hat, Inc.
# All rights reserved.
@@ -9,7 +9,7 @@
##
COMPOSE_PWD=`dirname $0`
-source ${COMPOSE_PWD}/compose_functions
+. ${COMPOSE_PWD}/compose_functions
## Always switch into the base directory three levels
## above this shell script prior to executing it so
@@ -202,7 +202,7 @@ fi
##
rm -rf ${PKI_CORE_PACKAGE_SCRIPT}
-printf "#!/bin/bash\n\n" > ${PKI_CORE_PACKAGE_SCRIPT}
+printf "#!/bin/sh\n\n" > ${PKI_CORE_PACKAGE_SCRIPT}
printf "${PKI_CORE_PACKAGE_COMMAND}\n\n" >> ${PKI_CORE_PACKAGE_SCRIPT}
chmod 775 ${PKI_CORE_PACKAGE_SCRIPT}
@@ -212,7 +212,7 @@ chmod 775 ${PKI_CORE_PACKAGE_SCRIPT}
##
cd ${PKI_PACKAGES} ;
-bash ./package_${PKI_CORE} | tee package_${PKI_CORE}.log 2>&1
+sh ./package_${PKI_CORE} | tee package_${PKI_CORE}.log 2>&1
if [ "$CREATEREPO" == "Y" ] ; then
echo "Creating a repository of the built rpms"