fix: source functions
sourcing /lib/functions so uci_get is in scope
This commit is contained in:
9
test/functions.sh
Normal file
9
test/functions.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
# create a symlink to this file at /lib/functions.sh for testing
|
||||
|
||||
# mock implementation of uci_get that always returns the default value
|
||||
uci_get() {
|
||||
for item in "$@"; do
|
||||
last=$item
|
||||
done
|
||||
echo "$last"
|
||||
}
|
||||
Reference in New Issue
Block a user