make POSIX compliant

This commit is contained in:
2019-06-29 17:26:18 +02:00
parent fb77303fa5
commit c66fe0e48d

View File

@@ -28,7 +28,7 @@ DATE=$(date +"%Y-%m-%d_%H-%M")
LOG="$CURDIR"/backup.log
function trim {
sed -r -e 's/^\s*//g' -e 's/\s*$//g'
sed -r -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*$//g'
}
function pdate {
DATE=$(date +%y-%m-%d_%H:%M:%S)