github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/scripts/konnector-dev-run.sh (about)

     1  #!/bin/bash
     2  set -e
     3  set -o pipefail
     4  
     5  arg="${1}"
     6  
     7  if [ ! -f "${arg}" ] && [ ! -d "${arg}" ]; then
     8    >&2 echo "${arg} does not exist"
     9    exit 1
    10  fi
    11  
    12  [ ! -d ~/.cozy ] && mkdir -p ~/.cozy
    13  node "${arg}" 2>&1 | tee -a ~/.cozy/services.log