mkdir -p "$upload_dir1"
mkdir -p "$upload_dir2"
-if [ "$(uname -m)" != 'x86_64' ]; then
+platform_arch=$(uname -m)
+if [ "${platform_arch}" != 'x86_64' ]; then
# On non-x86 architecture, rename the artifacts appropiately
pushd "$WORKSPACE/work/results/images/"
- rename "s/\./.$(uname -m)./" *.*
+ rename "s/\./.${platform_arch}./" *.*
+ sed -i "s/\./.${platform_arch}./" *."${platform_arch}".iso.*
popd
fi