scripts: fixed 'cmd.sh' never passing arguments
This commit is contained in:
parent
20d9d7294b
commit
392c3f9230
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if [ "$#" -eq 0 ]; then
|
||||
if [ "$#" -ne 0 ]; then
|
||||
args=''
|
||||
for arg in $@; do
|
||||
if [[ $arg =~ ^-.+$ ]]; then
|
||||
|
|
Loading…
Reference in a new issue