mirror of
https://github.com/We-Dont-Byte/Mind_Reader.git
synced 2024-11-15 03:35:59 +00:00
Fix assignments in bash scripts
This commit is contained in:
parent
e8afacef18
commit
e749399793
@ -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
|
||||
|
@ -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" \
|
||||
|
Loading…
Reference in New Issue
Block a user