From 405debf44e994fd6d6ef23ec8c9e03892f52bc1d Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Tue, 9 May 2017 19:38:31 +0300
Subject: [PATCH] - Declare variables as local to the function.

---
 .bashrc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.bashrc b/.bashrc
index a374349..8ab53d0 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/"
-- 
GitLab