Add empty_file()-helper. To be used later.
This commit is contained in:
parent
4921cb9f06
commit
f7badfea2e
@ -115,4 +115,12 @@ if [ "${general_utils_sourced:-1}" = "1" ]; then # include only once
|
||||
# log_debug "$1=$__n"
|
||||
:
|
||||
}
|
||||
|
||||
empty_file () {
|
||||
if [[ -f "$1" ]]; then
|
||||
echo -n "" > $1
|
||||
else
|
||||
log_error "$1 does not exist"
|
||||
fi
|
||||
}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user