nix-on-droid-app/nix/url2json-fix-printing.patch
phanirithvij e87b6091bf
Some checks failed
Build / build (apt-android-5) (push) Has been cancelled
Build / build (apt-android-7) (push) Has been cancelled
Validate Gradle Wrapper / Validation (push) Has been cancelled
Unit tests / testing (push) Has been cancelled
nix flake init
Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
2025-06-17 17:30:42 +02:00

12 lines
364 B
Diff

--- a/url2json.sh
+++ b/url2json.sh
@@ -115,7 +115,8 @@ PKG_URL_NO_EXT="${POM_URL%.pom}"
# Name of package without extension.
PKG_NAME="$(basename "${PKG_URL_NO_EXT}")"
-echo -en "${CLR} - Nix entry for: ${1##*/}\r" >&2
+printf -v spaces '%*s' 60 ''
+echo -en "${CLR} - Nix entry for: ${1##*/}$spaces\r" >&2
REPO_URL=$(match_repo_url "${PKG_URL_NO_EXT}")