Compare commits

...

3 Commits

Author SHA1 Message Date
765c4c03d0 mise au point solution 2022-05-18 21:03:20 +02:00
10bf6e47f7 ajout fonction upper 2022-05-18 21:01:10 +02:00
0ba83cd768 solution 2021-06-22 10:11:20 +02:00
2 changed files with 16 additions and 0 deletions

7
myfunctions.sh Normal file
View File

@@ -0,0 +1,7 @@
function myerror {
code=$1
shift
msg="$*"
echo $msg
exit $code
}

9
test.sh Normal file
View File

@@ -0,0 +1,9 @@
#! /bin/bash
set -e
set -u
source myfunctions.sh
myerror 42 "check \$? var"