Fix macOS tests
This commit is contained in:
9
todo.sh
9
todo.sh
@@ -491,7 +491,14 @@ replaceOrPrepend()
|
|||||||
fixMissingEndOfLine()
|
fixMissingEndOfLine()
|
||||||
{
|
{
|
||||||
# Parameters: $1: todo file; empty means $TODO_FILE.
|
# Parameters: $1: todo file; empty means $TODO_FILE.
|
||||||
sed -i.bak -e '$a\' "${1:-$TODO_FILE}"
|
#if [ "$OSTYPE" == "linux-gnu" ]; then
|
||||||
|
# sed -i.bak -e '$a\' "${1:-$TODO_FILE}"
|
||||||
|
#else
|
||||||
|
# sed -i '' -n p "${1:-$TODO_FILE}"
|
||||||
|
#f
|
||||||
|
todo_path="${1:-$TODO_FILE}"
|
||||||
|
[[ -f $todo_path ]] || echo "Not existing: $todo_path"
|
||||||
|
[[ -f $todo_path && $(tail -c1 "$todo_path") ]] && echo "" >> "$todo_path"
|
||||||
}
|
}
|
||||||
|
|
||||||
uppercasePriority()
|
uppercasePriority()
|
||||||
|
|||||||
Reference in New Issue
Block a user