From e749399793d36add91e2f14d4893d39d8609490f Mon Sep 17 00:00:00 2001 From: John Date: Thu, 28 Apr 2022 17:38:47 -0500 Subject: [PATCH] Fix assignments in bash scripts --- setup-development/linux/install-linux.sh | 8 ++++---- setup-development/linux/upgrade-linux.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/setup-development/linux/install-linux.sh b/setup-development/linux/install-linux.sh index ea6590d..d4918a5 100644 --- a/setup-development/linux/install-linux.sh +++ b/setup-development/linux/install-linux.sh @@ -4,7 +4,7 @@ #* Ensures git is installed, clones the repo, and then runs export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' -ELEVATE='';if (( $UID != 0 )); then ELEVATE='sudo';fi +ELEVATE='';if (( $UID !=0 )); then ELEVATE='sudo';fi help () { echo "Usage: $0 [-g path/to/git/directory]" @@ -12,7 +12,7 @@ help () { } -GITDIR = "~/git" +GITDIR="~/git" # Get option flags: dry=false @@ -32,8 +32,8 @@ function dryrun { $@ } -SETUPDIR= "Mind_Reader/setup-development" -REPOURI = "https://github.com/We-Dont-Byte/Mind_Reader.git" +SETUPDIR="Mind_Reader/setup-development" +REPOURI="https://github.com/We-Dont-Byte/Mind_Reader.git" # Install git if which git; then diff --git a/setup-development/linux/upgrade-linux.sh b/setup-development/linux/upgrade-linux.sh index 1246b6e..aa59c1d 100644 --- a/setup-development/linux/upgrade-linux.sh +++ b/setup-development/linux/upgrade-linux.sh @@ -7,7 +7,7 @@ # If run with bash -vx, print useful information instead of just a + sign export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' # If run as root, it could be because sudo isn't installed (some people disagree with sudo, especially on Arch) -ELEVATE='';if (( $UID != 0 )); then;ELEVATE='sudo';fi +ELEVATE='';if (( $UID !=0 )); then;ELEVATE='sudo';fi # Get option flags: dry=false @@ -65,14 +65,14 @@ cd ../.. # Check the VSCode version nodeversion="node" -electronversion = "" +electronversion="" #* Note: #* When adding support for new VSCode versions, update this case #* By the time you're working on this project, things are likely going to differ! case (code --version) in #* Each version of VSCode has a corresponding Electron version and Node version #* These are used when - 1.66.*) electronversion = "17.2.0"; nodeversion = "16.13.0";; + 1.66.*) electronversion="17.2.0"; nodeversion="16.13.0";; *) ;; esac @@ -87,7 +87,7 @@ dryrun npm install electron-rebuild yo generator-code dryrun npm install # Use electron-rebuild to rebuild electron -if (( electronversion != "" )); then +if (( electronversion !="" )); then dryrun electron-rebuild --version $electronversion else printf "%s/n%s/n%s/n%s/n" \