Skip to content

Commit

Permalink
Fix splash scrren not being copied, allowed --custom-background and a…
Browse files Browse the repository at this point in the history
…dded missing arguments to valid arguments list
  • Loading branch information
stuarthayhurst committed Jan 4, 2021
1 parent 58e6d82 commit 673496b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ installTheme() {
installCore

#Install splash screen
cp "$background" "$splashScreenPath"
cp "$installDir/background.png" "$splashScreenPath"

#Modify grub config
output "success" "Modifiying grub config..."
Expand Down Expand Up @@ -433,7 +433,7 @@ if [[ "$#" == "0" ]]; then
exit 1
fi

validArgList=("-h" "--help" "-i" "--install" "-u" "--uninstall" "-e" "--boot" "-p" "--preview" "-b" "--background" "-c" "--custom" "-r" "--resolution" "-fc" "--fontcolour" "--font-colour" "-fs" "--fontsize" "--font-size" "-f" "--font" "-l" "--bold")
validArgList=("-h" "--help" "-i" "--install" "-u" "--uninstall" "-e" "--boot" "-p" "--preview" "-b" "--background" "-c" "--custom" "--custom-background" "-r" "--resolution" "-fc" "--fontcolour" "--font-colour" "-fs" "--fontsize" "--font-size" "-f" "--font" "-l" "--bold" "-hl" "--helplabel" "--help-label" "-g" "--generate")
read -ra args <<< "${@}"; i=0
while [[ $i -le "$(($# - 1))" ]]; do
arg="${args[$i]}"
Expand Down Expand Up @@ -465,7 +465,7 @@ while [[ $i -le "$(($# - 1))" ]]; do
-e|--boot) installDir="/boot/grub/themes/argon";;
-p|--preview) programOperation="preview";;
-b|--background) getBackground "${args["$((i + 1))"]}" && i="$((i + 1))";;
-c|--custom) getCustomBackground "${args["$((i + 1))"]}" && i="$((i + 1))";;
-c|--custom|--custom-background) getCustomBackground "${args["$((i + 1))"]}" && i="$((i + 1))";;
-r|--resolution) getResolution "${args["$((i + 1))"]}" && i="$((i + 1))";;
-fc|--fontcolour|--font-colour) getFontColour "${args["$((i + 1))"]}" && i="$((i + 1))";;
-fs|--fontsize|--font-size) getFontSize "${args["$((i + 1))"]}" && i="$((i + 1))";;
Expand Down

0 comments on commit 673496b

Please sign in to comment.