mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
make-disk-image: fix pre/post files with empty glob
This commit is contained in:
parent
dd142cd8a2
commit
98a6ab9b52
1 changed files with 3 additions and 1 deletions
|
@ -122,6 +122,7 @@ in
|
|||
set -eu
|
||||
export PATH=${lib.makeBinPath dependencies}
|
||||
for src in /tmp/xchg/copy_before_disko/*; do
|
||||
[ -e "$src" ] || continue
|
||||
dst=$(basename "$src" | base64 -d)
|
||||
mkdir -p "$(dirname "$dst")"
|
||||
cp -r "$src" "$dst"
|
||||
|
@ -129,7 +130,8 @@ in
|
|||
set -f
|
||||
${builder}
|
||||
set +f
|
||||
for dir in /tmp/xchg/copy_after_disko/*; do
|
||||
for src in /tmp/xchg/copy_after_disko/*; do
|
||||
[ -e "$src" ] || continue
|
||||
dst=/mnt/$(basename "$src" | base64 -d)
|
||||
mkdir -p "$(dirname "$dst")"
|
||||
cp -r "$src" "$dst"
|
||||
|
|
Loading…
Reference in a new issue