diff options
author | solveit | 2022-04-27 09:43:34 -0400 |
---|---|---|
committer | solveit | 2022-04-27 09:43:34 -0400 |
commit | ada4918d5eda904dfd727442dc66ce389a7dec73 (patch) | |
tree | 83f99a02120b2460e0157629cc7b57969c0a2515 | |
parent | e0dc0e79931cbc30aa5a703531880e2ca1d7d80f (diff) | |
download | aur-ada4918d5eda904dfd727442dc66ce389a7dec73.tar.gz |
crowdsec: 1.3.3
-rw-r--r-- | crowdsec.install | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crowdsec.install b/crowdsec.install index 7f4b89087050..e13e5237aa97 100644 --- a/crowdsec.install +++ b/crowdsec.install @@ -10,8 +10,8 @@ post_upgrade() { # Version check is needed. Minor revs need a different options cd /usr/local/installers/crowdsec/crowdsec CSCLI=`which cscli` # Find CSCLI - current_ver="$(${CSCLI}|grep version | awk '{print $4}' | sed -e 's/[v\-]//g')" # Query existing 1.x.y revision - new_ver="$(./cmd/crowdsec-cli/cscli version | grep version | awk '{print $4}'| sed -e 's/[v\-]//g')" # Fetch new 1.x.y revision + current_ver="$(${CSCLI} version 2>&1 |grep version | awk '{print $4}' 2>&1 | sed -e 's/[varch-]//g')" # Query existing 1.x.y revision + new_ver="$(./cmd/crowdsec-cli/cscli version | grep version | awk '{print $4}' 2>&1| sed -e 's/[varch\-]//g')" # Fetch new 1.x.y revision # Check the 1.x revision IFS="." read -r -a current_ver_rev <<< "$current_ver" |