Rename function chroot to chroot_cmd

Do not create function with the same name as standard command, it is
very confusing.

Fixes QubesOS/qubes-issues#1174
pull/1/head mm_b427341d
Marek Marczykowski-Górecki 8 years ago
parent f51e3a09fe
commit b427341d28
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -65,7 +65,7 @@ if [ ! "$build_already_defined_colors" = "true" ]; then
fi
if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
chroot() {
chroot_cmd() {
# Display `chroot` or `systemd-nspawn` in blue ONLY if VERBOSE >= 2
# or DEBUG == "1"
local retval
@ -82,7 +82,7 @@ if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
return $retval
}
else
chroot() {
chroot_cmd() {
if [ "${SYSTEMD_NSPAWN_ENABLE}" == "1" ]; then
systemd-nspawn $systemd_bind -D "${INSTALLDIR}" -M "${DIST}" ${1+"$@"}
else

Loading…
Cancel
Save