diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index 8133189..6764c83 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -260,13 +260,14 @@ spcd_os_rm() { } spcd_os_sed() { - spcd_os_sed__file="${1}" + local file="${1}" shift - if [ -f "${spcd_os_sed__file}" ]; then - _spcd_os_cat "${spcd_os_sed__file}" - for spcd_os_sed__regex in "${@}"; do - sed --in-place "s${spcd_os_sed__regex}g" "${spcd_os_sed__file}" && - _spcd_os_cat "${spcd_os_sed__file}" + if [ -f "${file}" ]; then + local regex + _spcd_os_cat "${file}" + for regex in "${@}"; do + sed --in-place "s${regex}g" "${file}" && + _spcd_os_cat "${file}" done fi }