client: completion.bash: set xtrace if debug enabled

This commit is contained in:
2024-08-13 00:33:20 -07:00
parent 4302ac2bb5
commit 5684d94d63

View File

@@ -17,6 +17,14 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# WARNING: because of completion, the docker-finance environment file
# is never read. Ergo, for debugging, you'll need to run the following:
#
# `export DOCKER_FINANCE_DEBUG=true && . ~/.bashrc`
#
# and then proceed to call `docker-finance` / `dfi` with your commands.
[ "$DOCKER_FINANCE_DEBUG" == true ] && set -xv
# If not yet installed, gracefully exit # If not yet installed, gracefully exit
if ! hash docker &>/dev/null; then if ! hash docker &>/dev/null; then
exit 0 exit 0