ea3f4dd459
ensure 4 spaces indentation is used everywhere. Change-Id: Ieb48faacb4c96b7b358771d70c17f2f22d0354f4
21 lines
357 B
Bash
Executable File
21 lines
357 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
|