You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./utils/get-value.sh: 4: Bad substitution
./utils/get-value.sh: 4: Bad substitution
Research into utils/get-value.sh
#!/bin/sh# get the value of a key in the about.yaml file# https://stackoverflow.com/questions/1221833/pipe-output-and-capture-exit-status-in-bash
grep $1 about.yaml | sed "s/$1:[[:space:]]//";test${PIPESTATUS[0]} -eq 0
Invoked in Makefile as
SCHEMA_NAME = $(shell sh ./utils/get-value.sh name)SOURCE_SCHEMA_PATH = $(shell sh ./utils/get-value.sh source_schema_path)
Those commands do run for me in isolation, as long as I source them
. ./utils/get-value.sh name
mam-lpt1
. ./utils/get-value.sh source_schema_path
src/linkml/mam_lpt1.yaml
but not if I treat ./utils/get-value.sh like an executable
When running
make setupAfter successful
mkdir -p src/mam-lpt1/datamodel:Research into
utils/get-value.shInvoked in Makefile as
Those commands do run for me in isolation, as long as I source them
. ./utils/get-value.sh name. ./utils/get-value.sh source_schema_pathbut not if I treat
./utils/get-value.shlike an executable./utils/get-value.sh name