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
This commit is contained in:
parent
f51e3a09fe
commit
b427341d28
@ -65,7 +65,7 @@ if [ ! "$build_already_defined_colors" = "true" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
|
if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
|
||||||
chroot() {
|
chroot_cmd() {
|
||||||
# Display `chroot` or `systemd-nspawn` in blue ONLY if VERBOSE >= 2
|
# Display `chroot` or `systemd-nspawn` in blue ONLY if VERBOSE >= 2
|
||||||
# or DEBUG == "1"
|
# or DEBUG == "1"
|
||||||
local retval
|
local retval
|
||||||
@ -82,7 +82,7 @@ if [ "${VERBOSE}" -ge 2 -o "${DEBUG}" == "1" ]; then
|
|||||||
return $retval
|
return $retval
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
chroot() {
|
chroot_cmd() {
|
||||||
if [ "${SYSTEMD_NSPAWN_ENABLE}" == "1" ]; then
|
if [ "${SYSTEMD_NSPAWN_ENABLE}" == "1" ]; then
|
||||||
systemd-nspawn $systemd_bind -D "${INSTALLDIR}" -M "${DIST}" ${1+"$@"}
|
systemd-nspawn $systemd_bind -D "${INSTALLDIR}" -M "${DIST}" ${1+"$@"}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user