-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added flag to add all attachments to separate folder #33
base: master
Are you sure you want to change the base?
Conversation
added a flag to backup all attachments to a separate folder to address PeterKaminski09#28
|
||
while getopts ":a" opt; do | ||
case $opt in | ||
a) | ||
echo "Running baskup for text + attachments" | ||
BACKUP_ATTACHMENTS=1 | ||
;; | ||
all-attachments) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work for you? I think these opts might need to be single characters.
@@ -5,13 +5,17 @@ OS_Version=$(sw_vers -productVersion) | |||
LAST_VERSION=10.13 | |||
NEEDS_MODIFICATION=$(echo $OS_Version '>=' $LAST_VERSION | bc -l) | |||
BACKUP_ATTACHMENTS=0 | |||
BACKUP_ALL_ATTACHMENTS=0 | |||
|
|||
while getopts ":a" opt; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new opt needs to be added here.
|
||
while getopts ":a" opt; do | ||
case $opt in | ||
a) | ||
echo "Running baskup for text + attachments" | ||
BACKUP_ATTACHMENTS=1 | ||
;; | ||
all-attachments) | ||
echo "Saving all attachments to seperate directory" | ||
BACKUP_ALL_ATTACHMENTS=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're missing some semicolons.
PR to add flag to save all attachments to separate folder, addressing #28