commit 1e118e349d1d6fd9756206d3f9b0a9bdab6e9f72
parent c8f07d7eed47d1adda32edad180628972ff881e3
Author: Sean Enck <sean@ttypty.com>
Date: Sun, 30 Oct 2022 09:57:49 -0400
remove newline from version
Diffstat:
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/cmd/main.go b/cmd/main.go
@@ -75,7 +75,7 @@ func processInfoCommands(command string, args []string) ([]string, error) {
case cli.HelpCommand:
return cli.Usage()
case cli.VersionCommand:
- return []string{fmt.Sprintf("version: %s", strings.TrimSpace(version))}, nil
+ return []string{fmt.Sprintf("version: %s", version)}, nil
case cli.EnvCommand, cli.BashCommand:
defaultFlag := cli.BashDefaultsCommand
isEnv := command == cli.EnvCommand
diff --git a/cmd/vers.txt b/cmd/vers.txt
@@ -1 +1 @@
-v22.10.10
+v22.10.10
+\ No newline at end of file
diff --git a/scripts/version b/scripts/version
@@ -22,7 +22,7 @@ _version() {
vers=$(echo "$vers" | sed 's/^v//g;s/\.0/./g')
sed -i 's/^version =.*/version = "'"$vers"'"/' Cargo.toml
else
- echo "$vers"
+ printf "%s" "$vers"
fi
}