Skip to content

Commit

Permalink
Update example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
kkyr committed Nov 24, 2023
1 parent c9fe67d commit edc5db4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions example/after.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
## Example: a typical script with several problems
for f in ./*.m3u
do
grep -qi "hq.*mp3" "$f" \
&& echo "Playlist $f contains a HQ file in mp3 format"
done
File renamed without changes.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const (
the static analysis tool. You are required to make changes only to address these specific issues.
Any modifications that do not directly or indirectly relate to correcting these warnings and errors
should be avoided. Additionally, you must preserve the original comments in the script, altering
them only if they become irrelevant due to the changes you implement.
them only if they become irrelevant due to the changes you implement. Do NOT add any comments of
your own.
Your response should exclusively consist of the updated shell script text, presented without using
a code block format.
Expand Down

0 comments on commit edc5db4

Please sign in to comment.