Skip to content

Commit

Permalink
rm FTP_OPTS in update_check as it break STDOUT
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Bieber <[email protected]>
  • Loading branch information
qbit committed Aug 5, 2015
1 parent fd07c1e commit 018d8ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/ksh

version=1.0.8
version=1.0.10

grey="\033[01;30m"
red="\033[01;31m"
Expand Down Expand Up @@ -102,7 +102,7 @@ function error {

function check_update {
R="https://api.github.com/repos/qbit/snap/releases/latest"
LATEST=$(/usr/bin/ftp $FTP_OPTS -o - $R | \
LATEST=$(/usr/bin/ftp -o - $R | \
awk -F , '{for(i=1;i<NF;i++){if(match($i, /tag_name/)){print $i}}}' | \
cut -d: -f 2 | \
tr -d \")
Expand Down

0 comments on commit 018d8ee

Please sign in to comment.