No empty conditional blocks in bash

in #linux3 years ago

    if [ $ACCOUNT == 'accountname' ]
    then

        reqsubstr="requiredsubstring"
        if [ -z "${PERMLINK##*$reqsubstr*}" ] ;then

            echo 'nop'

            #/usr/local/bin/steempy resteem --account "account name" "$RESTEEMIFIER" 
        fi
    fi

i was wondering if everyone stopped posting

but (and its something i knew but syntax is a waste of brainspace, the "echo "nop" is imperative here (any null command will do) or it breaks due to "syntax error in line xxx near 'fi' "

fyi

warning this is not post64 :p

or php

or javascript

or phaser

or ukraine

or

a free picture of a bird but

upvote to 200 million plz so we can start up

you get 70 million discount b/c its not a tweet

otherwise it seems a bit bland to try if we cant even get that



Coin Marketplace

STEEM 0.16
TRX 0.25
JST 0.034
BTC 95780.50
ETH 2701.26
SBD 0.68