local only within functions
This commit is contained in:
2
piwisync.sh
Executable file → Normal file
2
piwisync.sh
Executable file → Normal file
@@ -19,7 +19,7 @@ fi
|
|||||||
subDir="$myyear/"
|
subDir="$myyear/"
|
||||||
thumbRoot="${piwiThumbRoot}/${subDir}"
|
thumbRoot="${piwiThumbRoot}/${subDir}"
|
||||||
photoRoot="${piwiPhotoRoot}/${subDir}"
|
photoRoot="${piwiPhotoRoot}/${subDir}"
|
||||||
local yearRegex='[0-9]{4}'
|
yearRegex='[0-9]{4}'
|
||||||
|
|
||||||
if [ ! -e ${thumbRoot} ] ; then
|
if [ ! -e ${thumbRoot} ] ; then
|
||||||
if [ -w ${piwiThumbRoot} ] && [[ "$subDir" =~ $yearRegex ]] ; then
|
if [ -w ${piwiThumbRoot} ] && [[ "$subDir" =~ $yearRegex ]] ; then
|
||||||
|
Reference in New Issue
Block a user