[X2Go-Commits] [nx-libs] 263/429: shellcheck: Fix SC2022 issue
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:46 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 71ae04011c353b0341b5ab0c16dad12ebefe6a67
Author: Mario Trangoni <mjtrangoni at gmail.com>
Date: Sat Feb 6 17:58:47 2021 +0100
shellcheck: Fix SC2022 issue
$ find . -name "*.sh" | xargs shellcheck -i SC2022
In ./roll-tarballs.sh line 120:
ls -d nx-X11/extras/* | grep -v "nx-X11/extras/tmpMesa*" | xargs rm -r
^----------------------^ SC2022: Note that unlike globs, a* here matches 'aaa' but not 'alpha'.
For more information:
https://www.shellcheck.net/wiki/SC2022 -- Note that unlike globs, a* here m...
Signed-off-by: Mario Trangoni <mjtrangoni at gmail.com>
---
roll-tarballs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/roll-tarballs.sh b/roll-tarballs.sh
index 95b820c5a..a263c7218 100755
--- a/roll-tarballs.sh
+++ b/roll-tarballs.sh
@@ -117,7 +117,7 @@ if [ "x$MODE" = "xfull" ]; then
# nx-X11/extras/Mesa. Deal with the Mesa.patches symlink/folder accordingly
cp -Lr "nx-X11/extras/Mesa" "nx-X11/extras/tmpMesa"
cp -Lr "nx-X11/extras/Mesa.patches" "nx-X11/extras/tmpMesa.patches"
- ls -d nx-X11/extras/* | grep -v "nx-X11/extras/tmpMesa*" | xargs rm -r
+ ls -d nx-X11/extras/* | grep -v "^nx-X11/extras/tmpMesa*" | xargs rm -r
mv "nx-X11/extras/tmpMesa" "nx-X11/extras/Mesa"
mv "nx-X11/extras/tmpMesa.patches" "nx-X11/extras/Mesa.patches"
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list