Skip to content

Commit

Permalink
refactor: replace usage of echo with printf
Browse files Browse the repository at this point in the history
  • Loading branch information
vednoc committed Nov 1, 2020
1 parent e935a82 commit 92bbc5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ clean() {
}

help() {
echo "\
printf "\
Usage:
pkg [options] [target]
Expand All @@ -33,10 +33,10 @@ Options:
version show version of this tool
Version:
$PKG_VERSION
%s
Source:
https://github.com/vednoc/pkg"
https://github.com/vednoc/pkg\n" $PKG_VERSION
}

info() {
Expand Down Expand Up @@ -96,7 +96,7 @@ upgrade() {
}

version() {
echo "pkg version $PKG_VERSION"
printf "pkg version %s\n" $PKG_VERSION
}

# Determine which package manager to use.
Expand Down

0 comments on commit 92bbc5d

Please sign in to comment.