rider/scripts/serve-editor.sh

13 lines
265 B
Bash
Raw Normal View History

#!/bin/env bash
nvm use 11.0.0
here=$(pwd)
target="cov/$(ls ${here}/cov | grep editor | grep "\\." | head -n1)"
if [[ -e "${target}" ]];
then
cd ${target} && echo "here: $(pwd)" && serve . && cd ${here}
else
echo "Target: '${target}' does not exists!"
fi