Commit a89f8d78 authored by Seblu's avatar Seblu
Browse files

archbuild: Fix reference to root chroot

parent b9474603
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -23,11 +23,11 @@ build=true
usage() {
	echo "Usage: $cmd [options] -- [makechrootpkg args]"
	echo '    -h         This help'
	echo '    -c         Recreate the chroot before building'
	echo '    -c         Recreate the root chroot before building'
	echo '    -U         Do not update chroots before building'
	echo '    -r <dir>   Create chroots in this directory'
	echo '    -R         Repackage (fastpass to makepkg -R)'
	echo '    -n         Do not build (used to create/update the chroot)'
	echo '    -n         Do not build (used to create/update the root chroot)'
	echo ''
	echo "Default makechrootpkg args: ${makechrootpkg_args[*]}"
	echo ''
@@ -56,7 +56,7 @@ check_root "$0" "${orig_argv[@]}"
[[ -n ${@:$OPTIND} ]] && makechrootpkg_args=("${@:$OPTIND}")

if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then
	msg "Creating chroot for [${repo}] (${arch})..."
	msg "Creating root chroot for [${repo}] (${arch})..."

	for copy in "${chroots}/${repo}-${arch}"/*; do
		[[ -d $copy ]] || continue