From b3b3d448fb5bc762cab2b4e56e2068fd8479e6b2 Mon Sep 17 00:00:00 2001 From: loseardes77 Date: Sat, 13 Apr 2024 23:20:48 +0200 Subject: [PATCH] Refactor hyprcursor-build.sh to compress theme directories as .tar.gz files --- hyprcursor-build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hyprcursor-build.sh b/hyprcursor-build.sh index effe0fc0..a7ceaceb 100755 --- a/hyprcursor-build.sh +++ b/hyprcursor-build.sh @@ -50,11 +50,12 @@ done cd hyprcursor-build for compressed_theme in $(find . -maxdepth 1 -type d | grep "theme_Bibata-*"); do echo "Compressing $compressed_theme" - - tar -cJvf "hypr_$(basename "$compressed_theme"| cut -d'_' -f2).tar.xz" "$compressed_theme/" + cd "$compressed_theme" + tar -czf "hypr_$(basename "$compressed_theme"| cut -d'_' -f2).tar.gz" . + cd .. done cd .. -mv hyprcursor-build/*.tar.xz bin/ \ No newline at end of file +mv hyprcursor-build/*/*.tar.gz bin/ \ No newline at end of file -- 2.51.2