Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
Silence errors if commands fail but work as root (also allow fork/pul…
Browse files Browse the repository at this point in the history
…l workflow) (#419)

* Silence errors if commands fail but work as root

* Run CI on pull requests, allow fork/pull workflow

* Silence errors if commands fail but work as root
  • Loading branch information
rolodato authored Nov 11, 2021
1 parent ac7b7f0 commit df345b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Binaries on each platform are stripped. This removes debug symbols.
name: Build
on: push
on: [push, pull_request]

jobs:
build-attribution-compat:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-scan.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Dependency scan
on: push
on: [push, pull_request]

jobs:
dependency-scan:
Expand Down
4 changes: 2 additions & 2 deletions install-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ execute() {
srcdir="${tmpdir}"
(cd "${tmpdir}" && unzip -o "${TARBALL}")
log_debug "setting up bindir: $BINDIR"
mkdir -p $BINDIR || sudo mkdir -p $BINDIR
mkdir -p "$BINDIR" 2> /dev/null || sudo mkdir -p "$BINDIR"
for binexe in "fossa" ; do
if [ "$OS" = "windows" ]; then
binexe="${binexe}.exe"
fi
log_debug "installing binary: $binexe"
cp "${srcdir}/${binexe}" "${BINDIR}/${binexe}" || sudo cp "${srcdir}/${binexe}" "${BINDIR}/${binexe}"
cp "${srcdir}/${binexe}" "${BINDIR}/${binexe}" 2> /dev/null || sudo cp "${srcdir}/${binexe}" "${BINDIR}/"
log_info "installed ${BINDIR}/${binexe}"
done
}
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ execute() {
srcdir="${tmpdir}"
(cd "${tmpdir}" && unzip -o "${TARBALL}")
log_debug "setting up bindir: $BINDIR"
mkdir -p $BINDIR || sudo mkdir -p $BINDIR
mkdir -p "$BINDIR" 2> /dev/null || sudo mkdir -p "$BINDIR"
for binexe in "fossa" ; do
if [ "$OS" = "windows" ]; then
binexe="${binexe}.exe"
fi
log_debug "installing binary: $binexe"
cp "${srcdir}/${binexe}" "${BINDIR}/${binexe}" || sudo cp "${srcdir}/${binexe}" "${BINDIR}/${binexe}"
cp "${srcdir}/${binexe}" "${BINDIR}/" 2> /dev/null || sudo cp "${srcdir}/${binexe}" "${BINDIR}/"
log_info "installed ${BINDIR}/${binexe}"
done
}
Expand Down

0 comments on commit df345b7

Please sign in to comment.