Fix some errors syncunf nextclud accounts..

This commit is contained in:
root
2020-11-19 18:46:54 +01:00
parent 8477b08aee
commit 2c54e20d04
4 changed files with 67 additions and 57 deletions

View File

@ -114,6 +114,13 @@ fatal(){
exit 1
}
trim() {
local var="$*"
var="${var#"${var%%[![:space:]]*}"}" # remove leading whitespace characters
var="${var%"${var##*[![:space:]]}"}" # remove trailing whitespace characters
echo -n "$var"
}
blank_line() {
echo ""
}