wunderio / ddev-drupal

Work in progress of template for DDEV Drupal projects
0 stars 0 forks source link

_run_scripts.sh could be simplified #13

Open hkirsman opened 4 months ago

hkirsman commented 4 months ago

@ragnarkurmwunder said the https://github.com/wunderio/ddev-drupal/blob/main/dist/.ddev/wunderio/core/_run-scripts.sh script could be simplified to this (checking based on PATH var):

export PATH=./c:./b:./a

if command -v cmd 1>/dev/null; then
  cmd
else
  echo "no cmd"
fi