forked from EvergreenCrypto/docker-finance
client: completion.bash: set xtrace if debug enabled
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user