diff options
author | varac <varacanero@zeromail.org> | 2017-02-16 18:57:32 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2017-02-16 18:57:32 +0100 |
commit | 74315f481d3ed76292050bab5103459937c18a0c (patch) | |
tree | 1585c0b671d092e5b02b3d591d3e0dce978a54c8 | |
parent | 0913fd09d39fcc697bf6c1bcdf0d0ebfb03977ba (diff) |
Remove version file if it exists in script
-rwxr-xr-x | deb_release.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deb_release.sh b/deb_release.sh index aec6f22..96c038f 100755 --- a/deb_release.sh +++ b/deb_release.sh @@ -1,8 +1,8 @@ #!/bin/sh VERSION_FILE="src/leap/mx/_version.py" -rm ${VERSION_FILE} -python setup.py freeze_debianver +[ -f ${VERSION_FILE} ] && rm ${VERSION_FILE} +echo 'y' | python setup.py freeze_debianver sed -i 's/-dirty//g' ${VERSION_FILE} git add ${VERSION_FILE} git commit -m "[pkg] freeze debian version" |