it gives an output, yes, but if "date +%H" is smaller then 10, it still says "later then 10h"
if [ $(date +%H) > 10 ]; then echo "later then 10h"; else echo "before 10h"; fi;
it gives an output, yes, but if "date +%H" is smaller then 10, it still says "later then 10h"
if [ $(date +%H) > 10 ]; then echo "later then 10h"; else echo "before 10h"; fi;