summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--colm/colm-wrap.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/colm/colm-wrap.sh b/colm/colm-wrap.sh
index a255f4bb..8140afca 100644
--- a/colm/colm-wrap.sh
+++ b/colm/colm-wrap.sh
@@ -56,7 +56,8 @@ fi
# Default command to colm.
if [ "${INPUT%.pack}" != "$INPUT" ]; then
- tar -xmf "$INPUT" "$OUTPUT"
+ tar -xmf "$INPUT" "$OUTPUT.pack"
+ mv $OUTPUT.pack $OUTPUT
EXIT_STATUS=$?
else
CMD=${CMD:=colm}
@@ -69,7 +70,7 @@ else
$COLM $ARGS "$INPUT"
EXIT_STATUS=$?
if [ $EXIT_STATUS = 0 ]; then
- tar --transform 's/.pack$//' -cf "$OUTPUT" $PACKS
+ tar -cf "$OUTPUT" $PACKS
fi
rm -f $PACKS
fi