Skip to content

Commit

Permalink
remove -M for older systems
Browse files Browse the repository at this point in the history
  • Loading branch information
qbit committed Mar 25, 2015
1 parent 361e5fc commit 16790b7
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
Expand Up @@ -111,7 +111,7 @@ function error {

function check_update {
R="https://api.github.com/repos/qbit/snap/releases/latest"
LATEST=$(/usr/bin/ftp $FTP_OPTS -M -o - $R | \
LATEST=$(/usr/bin/ftp $FTP_OPTS -o - $R | \
awk -F, '{for(i=1;i<NF;i++){if(match($i, /tag_name/)){print $i}}}' | \
cut -d: -f 2 | \
sed -e 's/"//g')
Expand All @@ -132,7 +132,7 @@ function check_update {
function install_update {
sver=$1
tmp_file=$(mktemp)
/usr/bin/ftp $FTP_OPTS -M -o $tmp_file \
/usr/bin/ftp $FTP_OPTS -o $tmp_file \
https://raw.githubusercontent.com/qbit/snap/${sver}/snap
cp $tmp_file "$spath/$sname"
msg "Installed new version (${sver}) of snap - please re-run!"
Expand Down

0 comments on commit 16790b7

Please sign in to comment.