diff options
author | Adrian Thurston <thurston@colm.net> | 2020-01-03 14:45:23 +0200 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2020-01-03 14:45:23 +0200 |
commit | 249679f1ae83d72c09c058dcd7e055924378c0dd (patch) | |
tree | e969ea11cec9cb60e1ab65446830d7732238019d /colm | |
parent | e673499ac9ca4739bfbf943e527b7624c50504f0 (diff) | |
download | colm-249679f1ae83d72c09c058dcd7e055924378c0dd.tar.gz |
colm-pack: don't try to tar up results when colm failes
refs #85
Diffstat (limited to 'colm')
-rw-r--r-- | colm/colm-pack.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/colm/colm-pack.sh b/colm/colm-pack.sh index 0a737e5f..ce0ea902 100644 --- a/colm/colm-pack.sh +++ b/colm/colm-pack.sh @@ -48,7 +48,9 @@ else $COLM $ARGS "$@" EXIT_STATUS=$? - tar --transform 's/.pack$//' -cf "$pack_file" $PACKS + if [ $EXIT_STATUS = 0 ]; then + tar --transform 's/.pack$//' -cf "$pack_file" $PACKS + fi rm -f $PACKS fi |