-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #247 from vespa-engine/toregge/use-shellcheck-for-…
…rpm-build-scripts Use shellcheck for rpm build scripts.
- Loading branch information
Showing
6 changed files
with
42 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#!/bin/sh | ||
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. | ||
|
||
WORKDIR=$(cd $(dirname $0) && env pwd) | ||
cd $WORKDIR | ||
WORKDIR=$(cd "$(dirname "$0")" && env pwd) | ||
cd "$WORKDIR" || exit 1 | ||
|
||
. ../../../shared/common.sh | ||
|
||
|
||
if test -f /usr/bin/createrepo_c | ||
then | ||
mkdir -p RPMS/$(arch) | ||
createrepo_c RPMS/$(arch) | ||
mkdir -p "RPMS/$(arch)" | ||
createrepo_c "RPMS/$(arch)" | ||
else | ||
$CONTAINER_ENGINE run --rm -v $WORKDIR:/work docker.io/almalinux:8 bash -c 'dnf -y install createrepo_c && mkdir -p /work/RPMS/$(arch) && createrepo_c /work/RPMS/$(arch) && chown -R --ref /work/build-rpm-inner.sh /work/RPMS' | ||
# shellcheck disable=SC2016 | ||
$CONTAINER_ENGINE run --rm -v "$WORKDIR:/work docker.io/almalinux:8" bash -c 'dnf -y install createrepo_c && mkdir -p /work/RPMS/$(arch) && createrepo_c /work/RPMS/$(arch) && chown -R --ref /work/build-rpm-inner.sh /work/RPMS' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters