Skip to content
Snippets Groups Projects
Commit 68de1b39 authored by Bob Mottram's avatar Bob Mottram
Browse files

Get the architecture if it isn't specified

parent 1dbd1b16
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,17 @@ function gogs_parameters {
CURR_ARCH=arm
fi
if [ ! $CURR_ARCH ]; then
echo $'No architecture specified'
ARCHITECTURE=$(uname -m)
if [[ $ARCHITECTURE == "arm"* ]]; then
CURR_ARCH=arm
fi
if [[ $ARCHITECTURE == "amd"* ]]; then
CURR_ARCH=amd64
fi
if [[ $ARCHITECTURE == *"386" || $ARCHITECTURE == *"686" ]]; then
CURR_ARCH=386
fi
return
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment