[tracker-oci-images/sam/asciidoc-fix: 3/5] Use `set -e` in prepare scripts
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-oci-images/sam/asciidoc-fix: 3/5] Use `set -e` in prepare scripts
- Date: Sun, 5 Apr 2020 18:11:23 +0000 (UTC)
commit d60b2c3abc77b6822612aed4d9388ec29616d6a8
Author: Sam Thursfield <sam afuera me uk>
Date: Sun Apr 5 19:03:27 2020 +0200
Use `set -e` in prepare scripts
Otherwise, mistakes are not detected.
alpine/prepare.sh | 2 ++
debian/prepare.sh | 2 ++
fedora/prepare.sh | 3 ++-
3 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/alpine/prepare.sh b/alpine/prepare.sh
index 239510d..ba21e4a 100644
--- a/alpine/prepare.sh
+++ b/alpine/prepare.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -ex
+
echo 'https://alpine.global.ssl.fastly.net/alpine/edge/community/' >> /etc/apk/repositories
apk add -U alpine-sdk asciidoc bash-completion dbus-dev git glib-dev gobject-introspection-dev \
gtk-doc icu-dev json-glib-dev libsoup-dev libxml2-dev meson networkmanager-dev \
diff --git a/debian/prepare.sh b/debian/prepare.sh
index 167f60a..85a0862 100644
--- a/debian/prepare.sh
+++ b/debian/prepare.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -ex
+
# Enable source repositories so we can use `apt-get build-dep`
sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
diff --git a/fedora/prepare.sh b/fedora/prepare.sh
index 6929ff6..6d0eba2 100644
--- a/fedora/prepare.sh
+++ b/fedora/prepare.sh
@@ -1,5 +1,6 @@
#!/bin/sh
-set -x
+
+set -ex
dnf upgrade -y
dnf install -y 'dnf-command(builddep)' libseccomp-devel redhat-rpm-config
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]