From f43b60a6fe42bab2cc8f06562b98206a5a37a88c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 2 Jun 2018 20:47:42 +0200 Subject: fix paths --- custom/recv-media.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'custom/recv-media.sh') diff --git a/custom/recv-media.sh b/custom/recv-media.sh index d9ed888d..03c37e06 100644 --- a/custom/recv-media.sh +++ b/custom/recv-media.sh @@ -23,8 +23,8 @@ fi # $(echo ${2}) # EOF -if [[ $(id -Gn) != *"$group"* ]]; then - printf "Groups are ‘%s’. Trying to switch primary group to ‘%s’..." $(id -Gn) $group +if [[ $(@coreutils@/bin/id -Gn) != *"$group"* ]]; then + printf "Groups are ‘%s’. Trying to switch primary group to ‘%s’..." $(@coreutils@/bin/id -Gn) $group exec -- @wrapperdir@/sg $group "$0 $*" fi @@ -32,10 +32,10 @@ typeset -a failures failures=() ( - if ! cp -lnv --preserve=all "$1" "${target}"; then + if ! @coreutils@/bin/cp -lnv --preserve=all "$1" "${target}"; then @coreutils@/bin/mkdir -pv "${tmpFile:h}" || failures+="mkdir" - @utillinux@/bin/ionice -c 3 -t @coreutils@/bin/cp -vn --preserve=all "$1" "${tmpFile}" && mv -v "${tmpFile}" "${target}" || failures+="cp" + @utillinux@/bin/ionice -c 3 -t @coreutils@/bin/cp -vn --preserve=all "$1" "${tmpFile}" && @coreutils@/bin/mv -v "${tmpFile}" "${target}" || failures+="cp & mv" fi @coreutils@/bin/touch -c -m -t "$2" "${target}" || failures+="touch" ) -- cgit v1.2.3