title: Why my if/else statement doesn't work? (shell)
body: <p>I have problem with this shell script:</p>
  <pre><code>current_time=$(date +&quot;%T&quot;); 
  current_day_of_week=&quot;$(date +'%u')&quot;; 
  if [[ current_day_of_week == 1 ]]; 
  then echo &quot;Setting max time to 03:00:00&quot; &amp;&amp; max_time=&quot;03:00:00&quot;; 
  else echo &quot;Setting max time to 01:30:00&quot; &amp;&amp; max_time=&quot;01:30:00&quot;; fi; 
  </code></pre>
  <p>I want to set variable <code>max_time</code> to <code>03:00:00</code> when it's monday, but the code doesn't work :(</p>