config/scripts/message_bash/include.sh

19 lines
266 B
Bash
Raw Normal View History

2022-02-25 17:32:06 +01:00
#!/usr/bin/env bash
myfunct() {
local a=10
debug "my a variable is $a"
msg "value of 'a' squared: $(( a * a ))"
}
check_file() {
if [ ! -f "monfichier.txt" ]
then
display_error "File monfichier.txt not found"
fi
}
display_error() {
error "$*"
}