Skip to content

Commit 3896ef2

Browse files
authored
Merge pull request #302 from DannyBen/refactor/lint
Improve generated script format
2 parents a57d9fe + 8f7b529 commit 3896ef2

File tree

23 files changed

+157
-373
lines changed

23 files changed

+157
-373
lines changed

examples/colors/src/lib/colors.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ print_in_color() {
1414
local color="$1"
1515
shift
1616
if [[ -z ${NO_COLOR+x} ]]; then
17-
printf "$color%b\e[0m\n" "$*";
17+
printf "$color%b\e[0m\n" "$*"
1818
else
19-
printf "%b\n" "$*";
19+
printf "%b\n" "$*"
2020
fi
2121
}
2222

examples/command-examples/download

Lines changed: 0 additions & 219 deletions
This file was deleted.

examples/config-ini/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bashly = works
7777
# Using the standard library (lib/config.sh) to show a value from the config
7878
7979
key="${args[key]}"
80-
if config_has_key "$key" ; then
80+
if config_has_key "$key"; then
8181
config_get "$key"
8282
else
8383
echo "No such key: $key"
@@ -97,7 +97,7 @@ fi
9797
config_show
9898
9999
# Or to iterate through keys
100-
for key in $(config_keys) ; do
100+
for key in $(config_keys); do
101101
echo "$key === $(config_get "$key")"
102102
done
103103

examples/config-ini/src/get_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Using the standard library (lib/config.sh) to show a value from the config
22

33
key="${args[key]}"
4-
if config_has_key "$key" ; then
4+
if config_has_key "$key"; then
55
config_get "$key"
66
else
77
echo "No such key: $key"

0 commit comments

Comments
 (0)