8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8af3fa3 commit c72a394Copy full SHA for c72a394
pacstrap.in
@@ -130,7 +130,11 @@ done
130
shift $(( OPTIND - 1 ))
131
132
(( $# )) || die "No root directory specified"
133
-newroot=$1; shift
+newroot=$1
134
+shift
135
+
136
+[[ -d $newroot ]] || die "%s is not a directory" "$newroot"
137
138
pacman_args+=("$pacmode" "${@:-base}" --config="$pacman_config")
139
140
if (( ! hostcache )); then
@@ -141,8 +145,6 @@ if (( ! interactive )); then
141
145
pacman_args+=(--noconfirm)
142
146
fi
143
147
144
-[[ -d $newroot ]] || die "%s is not a directory" "$newroot"
-
148
if (( unshare )); then
149
setup=unshare_setup
150
$mount_unshare bash -c "$(declare_all); pacstrap"
0 commit comments