diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2021-11-14 20:42:34 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2021-11-15 08:29:49 +0100 |
commit | 8f86f098b6ea868f8d98b4d26df8382dc4047c81 (patch) | |
tree | 1ef66b6243eb504b23d3739a47b923cc7d90f5c7 /board/common.sh |
Inital commit
Diffstat (limited to 'board/common.sh')
-rw-r--r-- | board/common.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/common.sh b/board/common.sh new file mode 100644 index 0000000..ecda59d --- /dev/null +++ b/board/common.sh @@ -0,0 +1,8 @@ +create_missing_dir() { + test -d "${TARGET_DIR}/$1" || mkdir "${TARGET_DIR}/$1" +} + +remove_text() { + echo sed --in-place "s/$2//" $1 + sed --in-place "s/$2//" $1 +} |