From e0ddbff0d13bd59ac54c5af6d11eb69581c54a28 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Wed, 20 Mar 2024 16:26:36 +0200 Subject: [PATCH] Add bash logo, written by, linted by to README. --- README.md | 8 +++++++- src/octozipo | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fecfa14..a212891 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ -# Octozipo +

+Octozipo - Convert Zip package to a repository. +

+ +Written by Llewellyn van der Merwe (@llewellynvdm) Convert Zip packages to repositories and if they exist update and tag them. +Linted by [#ShellCheck](https://github.com/koalaman/shellcheck) + ## Install ## Get needed access token diff --git a/src/octozipo b/src/octozipo index 6f071d8..8625fff 100755 --- a/src/octozipo +++ b/src/octozipo @@ -806,7 +806,7 @@ function getVersionNumberByFile() { function rightStrip() { # Usage: rightStrip "string" "pattern" - printf '%s\n' "${1%%$2}" + printf '%s\n' "${1%%"$2"}" } # leftStrip - Removes the specified pattern from the start of a string @@ -824,7 +824,7 @@ function rightStrip() { # The modified string with the pattern removed from the start function leftStrip() { # Usage: leftStrip "string" "pattern" - printf '%s\n' "${1##$2}" + printf '%s\n' "${1##"$2"}" } # This function unzips the package located in the `VDM_ZIP_DIR` directory to the specified folder.