mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
ekf2 replay: refactor to use unified rcS scripts
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user