I've added second and third arguments so that you can choose the sort of the page. The arguments aww top all will return the top posts of all time from r/aww, and aww new will start searching for images on the new page.
I also noticed that the script runs indefinitely, because the if [ -z $after ] check doesn't work, there will always be a value for $after. The correct bad value is null, so I added a check for that and it successfully exits now.
I've updated the README, and removed the extra condition. This PR now only adds functionality for sorting by page, and having different time scales for the top sort.
I've added second and third arguments so that you can choose the sort of the page. The arguments
aww top all
will return the top posts of all time from r/aww, andaww new
will start searching for images on the new page.I also noticed that the script runs indefinitely, because the
if [ -z $after ]
check doesn't work, there will always be a value for$after
. The correct bad value isnull
, so I added a check for that and it successfully exits now.