commit 99f0474e2918b81d5474ab0743a602846ab2d5cb parent 40f07cc5f6e862f32c0ab970b61c32ca1b16c000 Author: Frederic Cambus <fcambus@users.sourceforge.net> Date: Mon, 21 Sep 2015 22:10:40 +0200 Merge pull request #78 from lornix/master Force bc to return ints, no decimals for 'shift' Diffstat:
M | ansiweather | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ansiweather b/ansiweather @@ -261,7 +261,7 @@ set -- N NNE NE ENE E ESE SE SSE S SSW SW WSW W WNW NW NNW if [ "$forecast" = 0 ] then - shift "$(echo "($azimuth + 11.25)/22.5 % 16" | bc)" + shift "$(echo "scale=0; ($azimuth + 11.25)/22.5 % 16" | bc)" direction=$1 fi