Skip to content

Commit

Permalink
Refactor hyprcursor-build.sh to compress theme directories as .tar.gz…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
LOSEARDES77 committed Apr 13, 2024
1 parent 6962cc6 commit b3b3d44
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hyprcursor-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
mv hyprcursor-build/*/*.tar.gz bin/

0 comments on commit b3b3d44

Please sign in to comment.