diff options
author | Daniel Schwager <[email protected]> | 2012-02-03 13:41:08 (GMT) |
---|---|---|
committer | Daniel Schwager <daniel.schwa[email protected]> | 2012-02-03 13:41:08 (GMT) |
commit | 78d96bffad10463f31db57a9543d6a533c69b529 (patch) | |
tree | abbb1ab6298826c220e0a536a041445f95f55270 /lib/builder-utils.sh | |
parent | 72c8c4b9a9a3b13cc030b139678b7d6e76a64e88 (diff) |
Improvement: commands (7z, unzip, ..) are defined by global variables now. Added checking of command's availablility.
Diffstat (limited to 'lib/builder-utils.sh')
-rw-r--r-- | lib/builder-utils.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh index fc791a9..ba62596 100644 --- a/lib/builder-utils.sh +++ b/lib/builder-utils.sh @@ -57,9 +57,9 @@ function process_file() { if [ "$format" = "cp" ]; then cp $src $dst elif [ "$format" = "7zip" ]; then - 7z x -o$dst $src + $CMD_7z x -o$dst $src elif [ "$format" = "unzip" ]; then - unzip $src -d $dst + $CMD_unzip $src -d $dst else fatal_error "Unknown compression format: $format" fi |