File: setup-wrapper.sh

package info (click to toggle)
libskk 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,560 kB
  • sloc: ansic: 1,212; makefile: 415; sh: 62
file content (16 lines) | stat: -rwxr-xr-x 258 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -ex

if test $(id -u) -eq 0; then
    case "$RUNNER_OS" in
	Linux)
	    chown -R "$RUNUSER" "$GITHUB_WORKSPACE"
	    mkdir "$GITHUB_WORKSPACE/$INSTALLDIR"
	    ;;
	*)
	    echo "Unsupported OS: $RUNNER_OS" 1>&2
	    exit 1
	    ;;
    esac
fi