diff --git a/srcpkgs/xbps-triggers/files/binfmts b/srcpkgs/xbps-triggers/files/binfmts index 596e0c5d10..16919833a8 100755 --- a/srcpkgs/xbps-triggers/files/binfmts +++ b/srcpkgs/xbps-triggers/files/binfmts @@ -29,14 +29,16 @@ run) case "$TARGET" in post-install) - echo "${binfmts}" | while read line; do + echo "$binfmts" | tr '\' '&' 2> /dev/null | while read line; do + line=$(echo $line | tr '&' '\' 2> /dev/null) set -- ${line} _bin="$1"; shift; _args="$@"; _bname="$(basename ${_bin})" update-binfmts --package ${PKGNAME} --install ${_bname} ${_bin} ${_args} done ;; pre-remove) - echo "${binfmts}" | while read line; do + echo "$binfmts" | tr '\' '&' 2> /dev/null | while read line; do + line=$(echo $line | tr '&' '\' 2> /dev/null) set -- ${line} _bin="$1"; shift; _args="$@"; _bname="$(basename ${_bin})" if [ -f /var/lib/binfmts/${_bname} ]; then @@ -56,3 +58,4 @@ esac exit 0 # end +# end diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index c52d5517db..827fa3553c 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.100 +version=0.101 revision=1 noarch=yes bootstrap=yes