Skip to content

Commit

Permalink
fix: nolog + remove jam from status
Browse files Browse the repository at this point in the history
  • Loading branch information
gojigeje committed Jun 1, 2014
1 parent ae26718 commit ea41c4d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tweet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ setup() {
# echo "$f"
done

# exit 1
if [[ -z "$1" ]]; then
aksi_num=${#aksi_array[*]}
aksi=${aksi_array[$((RANDOM%aksi_num))]}
Expand All @@ -31,8 +30,10 @@ setup() {
fi
else
aksi="$1"
rm temp/*.last
touch "temp/$aksi.last"
if [[ "$aksi_nolog" != "1" ]]; then
rm temp/*.last
touch "temp/$aksi.last"
fi
fi
}
getJam() {
Expand All @@ -48,9 +49,9 @@ cekonline() {

post_tweet() {
if [[ ! -z "$tweet_status" ]]; then
getJam
echo "[ttytter] : $tweet_status ~ $getjam"
# echo "$tweet_status ~ $getjam" | ttytter -status=-
# getJam
echo "[ttytter] : $tweet_status"
# echo "$tweet_status" | ttytter -status=-
else
echo "ERROR_STATUS_KOSONG: $aksi"
fi
Expand Down

0 comments on commit ea41c4d

Please sign in to comment.