mirror of
https://github.com/lesderid/image-archlinux
synced 2025-04-11 14:45:39 +02:00
fixed clean_target + renamed chroot_in_target to do_in_target
This commit is contained in:
parent
1113d83949
commit
bc7d76b966
@ -51,20 +51,20 @@ patch_target() {
|
||||
|
||||
clean_target() {
|
||||
clean_paths=$1
|
||||
echo apt-get clean | do_in_target
|
||||
for path in $clean_paths; do
|
||||
if [ -e "$TARGET/$path" ]; then
|
||||
sudo rm -rf "$TARGET/$path"
|
||||
fi
|
||||
done
|
||||
echo apt-get clean | sudo chroot "$TARGET"
|
||||
}
|
||||
|
||||
archive_target() {
|
||||
sudo tar -C "$TARGET" -czf "$NAME.tar.gz" .
|
||||
}
|
||||
|
||||
chroot_in_target() {
|
||||
chroot "$TARGET"
|
||||
do_in_target() {
|
||||
sudo chroot "$TARGET" $@
|
||||
}
|
||||
|
||||
cli() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user