diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-05-28 16:18:41 +0500 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-05-28 16:18:41 +0500 |
| commit | 0c41f51fb11b82e4678e7b07f36ed97680b7aafa (patch) | |
| tree | 89622e6f3af97436c75462e83e84a87e0b3dd09e | |
| parent | 9d7b4aa1413cdbb0b8d6587d994d3f33c15a0362 (diff) | |
units/dump: Move file instead of copying it
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rw-r--r-- | README.md | 1 | ||||
| -rwxr-xr-x | bot.zsh | 2 | ||||
| -rw-r--r-- | units/dump.zsh | 2 |
3 files changed, 2 insertions, 3 deletions
@@ -40,7 +40,6 @@ For distribution specific installation commands follow [command-not-found](https ### BusyBox functions * base64 -* cp * cut * find * grep @@ -166,7 +166,7 @@ then exit 1 fi -for function in base64 cp cut find grep ls sed sort sha1sum sleep tr +for function in base64 cut find grep ls sed sort sha1sum sleep tr do if busybox ${function} --help > /dev/null then diff --git a/units/dump.zsh b/units/dump.zsh index 45d61c3..10b7475 100644 --- a/units/dump.zsh +++ b/units/dump.zsh @@ -21,7 +21,7 @@ do if [[ -f "${cache}/${dump_file}" ]] then - cp "${cache}/${dump_file}" "${dumps}/${update_id}" + mv "${cache}/${dump_file}" "${dumps}/${update_id}" fi rmdir "${cache}/${dump_file%.*}.lock" |
