mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
build: Error out properly when unsupported arch is given. (#4585)
This commit is contained in:
parent
eaa41e4086
commit
ba6d997d18
@ -90,9 +90,18 @@ main() {
|
|||||||
go_build ${each_osarch}
|
go_build ${each_osarch}
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
for each_osarch in $(echo $chosen_osarch | sed 's/,/ /g'); do
|
local found=0
|
||||||
go_build ${each_osarch}
|
for each_osarch in ${SUPPORTED_OSARCH}; do
|
||||||
|
if [ "$chosen_osarch" = "$each_osarch" ]; then
|
||||||
|
found=1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
if [ ${found} -eq 1 ]; then
|
||||||
|
go_build ${chosen_osarch}
|
||||||
|
else
|
||||||
|
echo "Unknown architecture \"${chosen_osarch}\""
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user