scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 5ae4e1ed091fc9dfb8a140f23788c7844385aeac
parent b3a0caa1094120a231f110c9fce53b6fb51d3a76
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Thu, 28 Mar 2024 17:20:20 +0100

Avoid exiting repl alg on error

Diffstat:
Malg | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/alg b/alg @@ -158,7 +158,7 @@ run() { letter1="$(echo "$letters" | cut -c 1)" letter2="$(echo "$letters" | cut -b 2)" - [ -z "$letter1" ] && usage && exit 1 + [ -z "$letter1" ] && usage && return case "$type" in c) @@ -184,7 +184,7 @@ run() { fi ;; *) - usage && exit 1 + usage && return ;; esac }