mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
update patch
This commit is contained in:
parent
5bc606e76f
commit
272ca5b29b
1 changed files with 1 additions and 2 deletions
|
@ -646,7 +646,7 @@ add_file() {
|
|||
command cp --preserve=mode,ownership --parents "$src" "$BUILDROOT"
|
||||
else
|
||||
# cp cannot handle mkdir :(
|
||||
[[ -d $(dirname "$BUILDROOT$dest") ]] || mkdir -p $(dirname "$BUILDROOT$dest")
|
||||
[[ -d "${BUILDROOT}${dest%/*}" ]] || add_dir "${dest%/*}"
|
||||
command cp --preserve=mode,ownership "$src" "$BUILDROOT$dest"
|
||||
fi
|
||||
else
|
||||
|
@ -711,7 +711,6 @@ add_binary() {
|
|||
binary="$(realpath -s -- "$binary")"
|
||||
|
||||
dest=${2:-$binary}
|
||||
dest="$(realpath -ms -- "$dest")"
|
||||
mode=${3:-$mode}
|
||||
|
||||
add_file "$binary" "$dest" "$mode"
|
||||
|
|
Loading…
Reference in a new issue