diff --git a/create.sh b/create.sh index 85c3d5e..27c2f2b 100755 --- a/create.sh +++ b/create.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # (c)2006, Laurence Withers. Released under the GNU GPL. See file # COPYING for details. @@ -38,14 +38,14 @@ DEVSCRIPTS="$(pwd)/scripts" # Get arguments, include standard functions -source ${TEMPLATE}/scripts/functions.sh || exit 1 +source "${TEMPLATE}/scripts/functions.sh" || exit 1 DEST_DIR="${DEST_DIR}/${P}" # Ensure that we have our .lwbuildrc set up correctly. -LWBUILDRC="~/.lwbuildrc" -if [ ! -e ${LWBUILDRC} ] +LWBUILDRC="${HOME}/.lwbuildrc" +if [ ! -e "${LWBUILDRC}" ] then echo "You don't have a ${LWBUILDRC}, so I'll create a blank one for you." do_cmd cp skel-.lwbuildrc ${LWBUILDRC}