Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mchangrh
Copy link

PR to add flag to save all attachments to separate folder, addressing #28

mchangrh added 2 commits May 30, 2019 22:45
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)
Copy link

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
Copy link

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
Copy link

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants