Fix script logic;Remove source files
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Danny Bessems 2022-11-23 13:30:32 +01:00
parent c9a8598a35
commit 46a927b777
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
#!/bin/bash
# Change working directory
popd {{ _template.service.workingdir }}
pushd {{ _template.service.workingdir }}
# Compress *.tar files
if tar -czf image-tarballs.tgz *.tar; then
if tar -czf image-tarballs.tgz *.tar --remove-files; then
# Disable systemd unit
systemctl disable {{ _template.service.name }}
fi