diff options
-rw-r--r-- | functions | 4 | ||||
-rw-r--r-- | init | 2 | ||||
-rw-r--r-- | mkinitcpio | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -53,7 +53,7 @@ add_symlink () if [ -L ${1} ]; then fil="${1}" dest="${fil##$BASEDIR}" - add_dir "${dest}" + add_dir $(dirname "${dest}") if ! grep "slink ${fil} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding symlink ${dest}" echo "slink ${dest} ${fil} $(stat -c '%a %u %g' ${fil})" >> "${FILELIST}" @@ -78,7 +78,7 @@ add_file () dest="${fil##$BASEDIR}" fi - add_dir "${dest}" + add_dir $(dirname "${dest}") if ! grep "file ${fil} " "${FILELIST}" 2>&1 > /dev/null; then msg " adding file ${dest}" @@ -39,7 +39,7 @@ if [ -e "/hooks" ]; then if [ "${TST}" != "disabled" ]; then run_hook () { msg "$h: no run function defined"; } if [ -e "/hooks/$h" ]; then - . $h + . /hooks/$h msg ":: Running Hook [${h}]" run_hook fi @@ -105,7 +105,7 @@ for hook in $HOOKS; do unset BINARIES unset FILES install () { msg "${hook}: no install function..."; } - if grep "install" "${INSTDIR}/${hook}" /dev/null 2>&1; then + if grep "install" "${INSTDIR}/${hook}" >/dev/null 2>&1; then source "${INSTDIR}/${hook}" install parse_hook |