simplify building locally
This commit is contained in:
@@ -121,19 +121,19 @@ echo "{
|
||||
echo -e "${GREEN}.vscode/sftp.json created successfully${NC}"
|
||||
|
||||
# Go through scripts, add variables and add them to project folder
|
||||
scripts=("upload-core-build.sh" "watch-core-build.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh")
|
||||
scripts=("build-watch.sh" "local-remote.sh" "remote-local.sh" "sftp-watch.sh")
|
||||
|
||||
for script in "${scripts[@]}"; do
|
||||
# Add variables to script
|
||||
echo "
|
||||
#!/bin/bash
|
||||
set -e
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Configuration
|
||||
SERVER_USER=\"${USERNAME}\"
|
||||
SERVER_HOST=\"${HOST}\"
|
||||
SERVER_PASSWORD=\"${SSH_PASSWORD}\"
|
||||
SERVER_PATH=\"${SERVER_PROJECT_PATH}/\"
|
||||
# Configuration
|
||||
SERVER_USER=\"${USERNAME}\"
|
||||
SERVER_HOST=\"${HOST}\"
|
||||
SERVER_PASSWORD=\"${SSH_PASSWORD}\"
|
||||
SERVER_PATH=\"${SERVER_PROJECT_PATH}/\"
|
||||
" > "${script}"
|
||||
|
||||
# Append the rest of the upload core build script
|
||||
|
||||
Reference in New Issue
Block a user