From 6b7dd340c496652b783c4895105adf0defdcf256 Mon Sep 17 00:00:00 2001 From: mattiaborsarini Date: Wed, 11 Aug 2021 14:50:40 +0200 Subject: [PATCH] bashrc.cust: Add 'cust-error' function This is a general error that will be used in other functions. --- bashrc.cust | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bashrc.cust b/bashrc.cust index 2f313ff..63bb68f 100644 --- a/bashrc.cust +++ b/bashrc.cust @@ -26,4 +26,11 @@ alias r='rm -fr' alias repoinit='repo init --no-clone-bundle' alias reposync='repo sync --force-sync --no-clone-bundle -c --no-tags' alias sudo='sudo ' -alias wget='wget --hsts-file /dev/null' \ No newline at end of file +alias wget='wget --hsts-file /dev/null' + + +# Functions +function cust-error { + echo "ERROR: Invalid argument(s)!" + exit 1 +} \ No newline at end of file