File: invoke_cask.sh

package info (click to toggle)
kotlin-mode 0.0~git20230123.fddd747-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 960 kB
  • sloc: lisp: 3,453; sh: 69; makefile: 45
file content (18 lines) | stat: -rwxr-xr-x 503 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# A little wrapper for Cask.  Used in Makefile.
# If ${CASK} is executable, use it.
# Otherwise, download the Cask to .cask/cask if not exists, then execute it.

if command -v "${CASK}" > /dev/null
then
    "${CASK}" "$@"
elif command -v .cask/cask/bin/cask > /dev/null
then
    .cask/cask/bin/cask "$@"
else
    mkdir -p .cask || exit 1
    git clone --depth 1 https://github.com/cask/cask.git .cask/cask || exit 1
    chmod a+x .cask/cask/bin/cask || exit 1
    .cask/cask/bin/cask "$@"
fi