forked from mirrored-repos/manjaro-tools
Fix previous commit
This commit is contained in:
parent
966404280c
commit
b52620d19a
1 changed files with 2 additions and 2 deletions
|
@ -357,10 +357,10 @@ download_to_cache(){
|
||||||
-w "${mountargs_rw}" \
|
-w "${mountargs_rw}" \
|
||||||
-B "${build_mirror}/${branch}" \
|
-B "${build_mirror}/${branch}" \
|
||||||
"$1" \
|
"$1" \
|
||||||
pacman -v -Sp $2 --noconfirm > /list.xorg
|
pacman -v -Sp $2 --noconfirm > "$1"/cache-packages.txt
|
||||||
sed -ni '/.pkg.tar.xz/p' "$1"/cache-packages.txt
|
sed -ni '/.pkg.tar.xz/p' "$1"/cache-packages.txt
|
||||||
sed -i "s/.*\///" "$1"/cache-packages.txt
|
sed -i "s/.*\///" "$1"/cache-packages.txt
|
||||||
find "$1/etc" -mindepth 1 -delete &> /dev/null
|
rm -rf "$1/etc"
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1: image path
|
# $1: image path
|
||||||
|
|
Loading…
Reference in a new issue