diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/recv-media.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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 | |||
23 | # $(echo ${2}) | 23 | # $(echo ${2}) |
24 | # EOF | 24 | # EOF |
25 | 25 | ||
26 | if [[ $(id -Gn) != *"$group"* ]]; then | 26 | if [[ $(@coreutils@/bin/id -Gn) != *"$group"* ]]; then |
27 | printf "Groups are ‘%s’. Trying to switch primary group to ‘%s’..." $(id -Gn) $group | 27 | printf "Groups are ‘%s’. Trying to switch primary group to ‘%s’..." $(@coreutils@/bin/id -Gn) $group |
28 | exec -- @wrapperdir@/sg $group "$0 $*" | 28 | exec -- @wrapperdir@/sg $group "$0 $*" |
29 | fi | 29 | fi |
30 | 30 | ||
@@ -32,10 +32,10 @@ typeset -a failures | |||
32 | failures=() | 32 | failures=() |
33 | 33 | ||
34 | ( | 34 | ( |
35 | if ! cp -lnv --preserve=all "$1" "${target}"; then | 35 | if ! @coreutils@/bin/cp -lnv --preserve=all "$1" "${target}"; then |
36 | @coreutils@/bin/mkdir -pv "${tmpFile:h}" || failures+="mkdir" | 36 | @coreutils@/bin/mkdir -pv "${tmpFile:h}" || failures+="mkdir" |
37 | 37 | ||
38 | @utillinux@/bin/ionice -c 3 -t @coreutils@/bin/cp -vn --preserve=all "$1" "${tmpFile}" && mv -v "${tmpFile}" "${target}" || failures+="cp" | 38 | @utillinux@/bin/ionice -c 3 -t @coreutils@/bin/cp -vn --preserve=all "$1" "${tmpFile}" && @coreutils@/bin/mv -v "${tmpFile}" "${target}" || failures+="cp & mv" |
39 | fi | 39 | fi |
40 | @coreutils@/bin/touch -c -m -t "$2" "${target}" || failures+="touch" | 40 | @coreutils@/bin/touch -c -m -t "$2" "${target}" || failures+="touch" |
41 | ) | 41 | ) |