config/scripts/message_bash/include.sh
2022-02-25 17:32:06 +01:00

19 lines
266 B
Bash

#!/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 "$*"
}