diff --git a/.bashrc b/.bashrc
index a374349efca677679d37996bcc3b077e3f99e4e6..8ab53d06c5a1ad5afd14107fbd5cfc9a12774063 100644
--- a/.bashrc
+++ b/.bashrc
@@ -110,6 +110,7 @@ docker-dev () {
 }
 
 sync-comics () {
+    local this_month last_month
     this_month="$( date '+xbmc.shore.co.il:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*' )"
     last_month="$( date --date '1 month ago' '+xbmc.shore.co.il:/srv/library/Comics/0-Day\ Week\ of\ %Y.%m.*' )"
     rsync --recursive --compress --progress --exclude "*.part" "$last_month" "$this_month" "$HOME/Downloads/Comics/"