Skip to content
Snippets Groups Projects
Unverified Commit 57504a5d authored by Alad Wenter's avatar Alad Wenter Committed by GitHub
Browse files

Merge pull request #1175 from aurutils/chroot-status-default

chroot: make --status default if no modes are specified
parents 488ce477 3c282892
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ fi
# Print paths to container and used makepkg/pacman paths. This does
# not require a priorly created container.
if (( status )); then
if (( status )) || ! (( update + build + create )); then
printf 'chroot:%s\npacman:%s\nmakepkg:%s\n' "$directory" "$pacman_conf" "$makepkg_conf"
exit 0
fi
......@@ -234,6 +234,9 @@ if (( create )); then
if [[ ! -d $directory/root ]]; then
# shellcheck disable=SC2086
$AUR_PACMAN_AUTH mkarchroot -C "$pacman_conf" -M "$makepkg_conf" "$directory"/root "${base_packages[@]}"
else
printf '%s: --create: there is nothing to do\n' "$argv0"
create=0
fi
fi >&2
......
## 20
* `aur-chroot`
+ run `--status` if no modes are specified
* `aur-sync`
+ move git `orderFile` to `XDG_CONFIG_HOME/aurutils/view/orderfile` (#1167)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment