From b427341d28f32dbbb4fc1763a5ff41cef309cb8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 20 Apr 2016 01:59:34 +0200 Subject: [PATCH] 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 --- functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.sh b/functions.sh index 38c1589..7ba35ea 100755 --- a/functions.sh +++ b/functions.sh @@ -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