scripts: fixed 'cmd.sh' never passing arguments

This commit is contained in:
Valerie Wolfe 2024-08-22 09:57:44 -04:00
parent 20d9d7294b
commit 392c3f9230

View file

@ -1,6 +1,6 @@
#!/usr/bin/bash #!/usr/bin/bash
if [ "$#" -eq 0 ]; then if [ "$#" -ne 0 ]; then
args='' args=''
for arg in $@; do for arg in $@; do
if [[ $arg =~ ^-.+$ ]]; then if [[ $arg =~ ^-.+$ ]]; then