Fix file not updating anymore

This commit is contained in:
taniman 2020-02-23 10:29:16 -04:00 committed by GitHub
parent 25ad37ed59
commit 87c97fdfe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
### Linux .jar Update Script for ProfitTrailer
### LAST UPDATED 24 Apr 2019
### LAST UPDATED 20 Feb 2020
### Place this script in the root folder where all your individual bot folders are and then execute it.
### For simplicity each ProfitTrailer.jar file should be nested exactly one subfolder.
@ -425,12 +425,6 @@ if [[ $continue == "y" ]] || [[ $continue == "Y" ]]; then
### Get the current status of the process ####
status=$(pm2 info "${name[$i]}" | grep 'status' | sed -n '1p' | cut -d '/' -f 2-)
rename=$(pm2 info "$newname" | grep 'exec cwd' | sed -n '1p' | cut -d '/' -f 2-)
### remove any leading or trailing spaces or tabs and also column bars from pm2 output by reversing and cutting ###
nowhitespace=$(echo "$rename" | xargs | rev | cut -d ' ' -f 2- | rev )
path[$i]=/"$nowhitespace"
### If the user is running this script inside their bots folder we avoid deleting the jar during cleanup ###
if [[ $DIR == "${path[$i]}" ]]; then
loc=Y