Feature #36
closed
- Status changed from New to Closed
- Assignee set to Arnaud MARTEL
- Author changed from Claire TOFFANO-NIOCHE to Arnaud MARTEL
- % Done changed from 0 to 100
C'est fait
<pre><code class="bash">
#!/bin/bash
read -p "mois : "TMP_MONTH
if [ "$TMP_MONTH" -le 0 ]; then
THRESHOLD_YEAR=`echo $(( $CURRENT_YEAR - 1 ))`
THRESHOLD_MONTH=`echo $(( 12 + TMP_MONTH ))`
else
THRESHOLD_YEAR=$CURRENT_YEAR
THRESHOLD_MONTH=$TMP_MONTH
fi
return 0;
</code>
donne :
#!/bin/bash
read -p "mois : "TMP_MONTH
if [ "$TMP_MONTH" -le 0 ]; then
THRESHOLD_YEAR=`echo $(( $CURRENT_YEAR - 1 ))`
THRESHOLD_MONTH=`echo $(( 12 + TMP_MONTH ))`
else
THRESHOLD_YEAR=$CURRENT_YEAR
THRESHOLD_MONTH=$TMP_MONTH
fi
return 0;
Also available in: Atom
PDF