From 1c5b9e8c3c8819b4da759f3b78be6fac78b83ef9 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sun, 3 Nov 2024 00:16:04 +0500 Subject: [PATCH] compress.sh: Remove --- compress.sh | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100755 compress.sh diff --git a/compress.sh b/compress.sh deleted file mode 100755 index a6f5d3c..0000000 --- a/compress.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash -source common.sh - -# Ensure that lon-tool installed -which lon-tool > /dev/null 2>&1 || { - log_err "lon-tool not found" - exit 1 -} - -# shellcheck disable=SC2162 -find ./raw/ -mindepth 1 -maxdepth 1 | read || { - log_err "Nothing to compress" - exit 1 -} - -# Settings -DATE=$(date +"%d-%m-%y") - -# Begin script -log "Start compressing images" -log "Current date: ${DATE}" - -for image in raw/*; do - full_image_path=$(realpath "$image") - image_name=$(basename "$full_image_path") - lni_name="${image_name/.img/""}" - full_lni_path=$(realpath "./out/${image_name/.img/".lni"}") - log "Compressing $lni_name" - lon-tool image create -n "$lni_name" -v "$DATE" "$full_image_path" "$full_lni_path" -done - -log "Stop compressing images"