modules/programs/bash: Fix ShellCheck warnings
https://github.com/koalaman/shellcheck/wiki/SC2086 Double quote to prevent globbing and word splitting. https://github.com/koalaman/shellcheck/wiki/SC2166 Prefer `[ p ] && [ q ]` as `[ p -a q ]` is not well defined. https://github.com/koalaman/shellcheck/wiki/SC2219 Instead of `let expr`, prefer `(( expr ))` . Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Raphael Megzari
parent
6b30660ee1
commit
d44b6ae6cb
@@ -26,7 +26,7 @@ in
|
||||
shopt -s nullglob
|
||||
for p in $NIX_PROFILES; do
|
||||
for m in "$p/etc/bash_completion.d/"*; do
|
||||
. $m
|
||||
. "$m"
|
||||
done
|
||||
done
|
||||
eval "$nullglobStatus"
|
||||
|
||||
Reference in New Issue
Block a user