Skip to content

Commit

Permalink
Bugfix: compress now really compresses archives
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Morgan committed Apr 16, 2012
1 parent 99852ce commit 09727c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
NEWS: MOBILE-SYNC 29.02.2012
===============================================================================

# 2.2 (16. April 2012)
Bugfixes:
- compress() function now compresses the archive based on file ending;
the program tar is used now instead of bsdtar.

# 2.1 (29. February 2012)
Enhancements:
- Added function isynch, which interactively lets you synchronize one folder.
- Added function isynch, which interactively lets you synchronize one folder
- Added help option (only commandline) and text
- Added adjustable timeout option
- Added internable read_timeout option
Expand Down
6 changes: 3 additions & 3 deletions synclib.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# synclib.sh

# Version 2.1 (29. February 2012)
# Version 2.2 (16. April 2012)
# Copyright (c) 2010-2012, Ben Morgan <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
Expand All @@ -15,7 +15,7 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

_version="2.1"
_version="2.2"

# Set the colors for the terminal
cBOLD="\e[1m"
Expand Down Expand Up @@ -99,7 +99,7 @@ function compress() {

message "compressing: `var $input` to $output"
sleep $timeout
bsdtar cf $startdir/$output $input
tar caf $startdir/$output $input
if [[ $? -ne 0 ]]; then
error "Last command ended with an error."
if [[ $force -eq 0 ]]; then
Expand Down

0 comments on commit 09727c8

Please sign in to comment.