Skip to content

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
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.

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.

;;
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants