Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zevilz committed Oct 24, 2019
1 parent 15808e4 commit 4a1c0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ do
7z a -mx$COMPRESS_RATIO -mhe=on$SPLIT_7Z$ARCHIVE_PASS $ARCHIVE_PATH $PROJECT_FOLDER$EXCLUDE_7Z$EXCLUDE_RELATIVE_7Z > /dev/null

# remove part postfix if only one part
if [[ $(ls $ARCHIVE_PATH.* | wc -l) -eq 1 ]]; then
if [[ $(ls $ARCHIVE_PATH.* 2>/dev/null | wc -l) -eq 1 ]]; then
mv $ARCHIVE_PATH".001" $ARCHIVE_PATH
fi

Expand Down Expand Up @@ -219,7 +219,7 @@ do
7z a -mx$COMPRESS_RATIO -mhe=on$SPLIT_7Z$ARCHIVE_PASS $ARCHIVE_PATH $MYSQL_DUMP_PATH > /dev/null

# remove part postfix if only one part
if [[ $(ls $ARCHIVE_PATH.* | wc -l) -eq 1 ]]; then
if [[ $(ls $ARCHIVE_PATH.* 2>/dev/null | wc -l) -eq 1 ]]; then
mv $ARCHIVE_PATH".001" $ARCHIVE_PATH
fi

Expand Down

0 comments on commit 4a1c0dd

Please sign in to comment.