Browse Source

Quickfix for a question

master
Fincer 8 years ago
parent
commit
99a7529209
2 changed files with 10 additions and 2 deletions
  1. +5
    -1
      data/linux/openra-installscript.sh
  2. +5
    -1
      linux-install.sh

+ 5
- 1
data/linux/openra-installscript.sh View File

@ -160,7 +160,7 @@ if [[ $(echo $response | sed 's/ //g') =~ ^([yY][eE][sS]|[yY])$ ]]; then
read -r -p "Please type 1 or 2 (Default: 2): " number
attempts=5
while [[ ! $(echo $number | sed 's/ //g') -eq 1 && ! $(echo $number | sed 's/ //g') -eq 2 ]]; do
while [[ ! $(echo $number | sed 's/ //g') -eq 1 && ! $(echo $number | sed 's/ //g') -eq 2 && ! $(echo $number | sed 's/ //g') == "" ]]; do
attempts=$(($attempts -1))
if [[ $attempts -eq 0 ]]; then
echo -e "\nMaximum attempts reached. Aborting.\n"
@ -171,6 +171,10 @@ if [[ $(echo $response | sed 's/ //g') =~ ^([yY][eE][sS]|[yY])$ ]]; then
let number=$(echo $number | sed 's/ //g')
done
if [[ $number == "" ]]; then
let number=2
fi
sleep 1
echo -e "\nDune 2 -- Question\n"


+ 5
- 1
linux-install.sh View File

@ -88,7 +88,7 @@ if [[ $DISTRO =~ "$ARCH" ]]; then
read -r -p "Please type 1 or 2 (Default: 2): " number
attempts=5
while [[ ! $(echo $number | sed 's/ //g') -eq 1 && ! $(echo $number | sed 's/ //g') -eq 2 ]]; do
while [[ ! $(echo $number | sed 's/ //g') -eq 1 && ! $(echo $number | sed 's/ //g') -eq 2 && ! $(echo $number | sed 's/ //g') == "" ]]; do
attempts=$(($attempts -1))
if [[ $attempts -eq 0 ]]; then
echo -e "\nMaximum attempts reached. Aborting.\n"
@ -99,6 +99,10 @@ if [[ $DISTRO =~ "$ARCH" ]]; then
let number=$(echo $number | sed 's/ //g')
done
if [[ $number == "" ]]; then
let number=2
fi
sleep 1
rm $WORKING_DIR/data/linux/arch_linux/*.patch


Loading…
Cancel
Save