16be6d7ce0
As with the previous similar changes, this is intended to catch problems as they happen instead of ignoring them and continuing on to potentially fail later. Setting this on all existing scripts will allow us to enforce use via Jenkins. Change-Id: Iad2d490c86dceab148ea9ab08f457c49a5d5352e
21 lines
341 B
Bash
Executable File
21 lines
341 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ "i386" = "$ARCH" ]; then
|
|
basearch=i386
|
|
arch=i686
|
|
elif [ "amd64" = "$ARCH" ]; then
|
|
basearch=x86_64
|
|
arch=x86_64
|
|
else
|
|
echo "********************"
|
|
echo "Unknown arch '$ARCH'"
|
|
echo "********************"
|
|
exit 1
|
|
fi
|
|
|
|
echo $basearch > /etc/yum/vars/basearch
|
|
echo $arch > /etc/yum/vars/arch
|