diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-02 20:47:42 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-06-02 20:47:42 +0200 |
commit | f43b60a6fe42bab2cc8f06562b98206a5a37a88c (patch) | |
tree | 4434ee4d9e1690e31ca9c1fc74e27b55a2fab430 /custom | |
parent | 547ce830d2ac429f7a87c5303964643a4389e6ec (diff) | |
download | nixos-f43b60a6fe42bab2cc8f06562b98206a5a37a88c.tar nixos-f43b60a6fe42bab2cc8f06562b98206a5a37a88c.tar.gz nixos-f43b60a6fe42bab2cc8f06562b98206a5a37a88c.tar.bz2 nixos-f43b60a6fe42bab2cc8f06562b98206a5a37a88c.tar.xz nixos-f43b60a6fe42bab2cc8f06562b98206a5a37a88c.zip |
fix paths
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 | ) |