Fix script logic;Remove source files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-11-23 13:30:32 +01:00
parent c9a8598a35
commit 46a927b777

View File

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