Commit c0c4db01 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add subst_option func for replace args

parent ff5d6f3d
...@@ -141,6 +141,13 @@ strip_spaces() ...@@ -141,6 +141,13 @@ strip_spaces()
echo "$*" | filter_strip_spaces echo "$*" | filter_strip_spaces
} }
# param true false
subst_option()
{
eval "[ -n \"\$$1\" ]" && echo "$2" || echo "$3"
}
epm() epm()
{ {
$PROGDIR/epm $@ $PROGDIR/epm $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment