File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed
Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -118,19 +118,19 @@ case "${CMD}" in
118118 help|-h|--help)
119119 usage
120120 ;;
121- bootstrap \
122- cmd \
123- cp \
124- limits \
125- list \
126- pkg \
127- service \
128- sysctl \
129- sysrc \
130- template \
131- update \
132- upgrade \
133- verify \
121+ bootstrap| \
122+ cmd| \
123+ cp| \
124+ limits| \
125+ list| \
126+ pkg| \
127+ service| \
128+ sysctl| \
129+ sysrc| \
130+ template| \
131+ update| \
132+ upgrade| \
133+ verify| \
134134 zfs)
135135 ;;
136136 * )
@@ -152,4 +152,4 @@ if [ -f "${SCRIPTPATH}" ]; then
152152 fi
153153else
154154 error_exit " ${SCRIPTPATH} not found."
155- fi
155+ fi
Original file line number Diff line number Diff line change @@ -105,8 +105,8 @@ render() {
105105
106106line_in_file () {
107107
108- local file_path =" ${1} "
109- local line =" ${2 } "
108+ local line =" ${1%% * } "
109+ local file_path =" ${1 #* } "
110110
111111 if [ -f " ${file_path} " ]; then
112112 if ! grep -qxF " ${line} " " ${file_path} " ; then
@@ -245,7 +245,6 @@ echo "Applying template: ${TEMPLATE}..."
245245
246246# Build a list of sed commands like this: -e 's/${username}/root/g' -e 's/${domain}/example.com/g'
247247# Values provided by default (without being defined by the user) are listed here. -- cwells
248- ARG_REPLACEMENTS=" -e 's/\$ {JAIL_IP}/${_jail_ip} /g' -e 's/\$ {JAIL_NAME}/${_jail} /g'"
249248# This is parsed outside the HOOKS loop so an ARG file can be used with a Bastillefile. -- cwells
250249if [ -s " ${rocinante_template} /ARG" ]; then
251250 while read _line; do
You can’t perform that action at this time.
0 commit comments