22 lines
350 B
Bash
22 lines
350 B
Bash
|
#!/usr/bin/bash
|
||
|
|
||
|
if [ "$#" -eq 0 ]; then
|
||
|
args=''
|
||
|
for arg in $@; do
|
||
|
if [[ $arg =~ ^-.+$ ]]; then
|
||
|
transform=(${arg//-//})
|
||
|
if [[ $arg =~ ^-.+=.+$ ]]; then
|
||
|
transform=(${transform//=/:})
|
||
|
fi
|
||
|
args="$args $transform"
|
||
|
else
|
||
|
args="$args $arg"
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
/mnt/c/Windows/System32/cmd.exe $args
|
||
|
else
|
||
|
/mnt/c/Windows/System32/cmd.exe
|
||
|
fi
|
||
|
|