ekf2 replay: refactor to use unified rcS scripts

This commit is contained in:
Beat Küng
2018-08-10 18:49:56 +02:00
committed by Daniel Agar
parent 34f1bbeb44
commit ab7f68f2ad
5 changed files with 40 additions and 28 deletions

View File

@@ -15,6 +15,15 @@ set() {
# alternative method with an alias:
# alias set='f(){ set -- "$1=$2"; eval "$1"; unset -f f; }; eval f'
# Execute another shell script.
# $1: Path to the script, (optionally starts with /, to match with the NuttX
# scripts)
sh() {
script="$1"
[[ "$script" != /* ]] && script="/$script"
source "$(pwd)$script"
}
# Don't stop on errors.
#set -e