Commit b232f21e authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix some bashisms

parent cbe5c85c
......@@ -192,7 +192,7 @@ __epm_addrepo_altlinux()
{
local repo="$*"
if [ -z "$repo" ] || [ "$repo" == "-h" ] || [ "$repo" == "--list" ] || [ "$repo" == "--help" ] ; then
if [ -z "$repo" ] || [ "$repo" = "-h" ] || [ "$repo" = "--list" ] || [ "$repo" = "--help" ] ; then
__epm_addrepo_altlinux_help
return
fi
......
......@@ -33,7 +33,7 @@ EOF
exit
fi
if [ "$1" == "--list-all" ] || [ -z "$*" ] ; then
if [ "$1" = "--list-all" ] || [ -z "$*" ] ; then
[ -n "$short" ] || [ -n "$quiet" ] || echo "Run with a name of a prescription to run:"
__epm_play_list $psdir
exit
......
......@@ -113,7 +113,7 @@ get_fix_release_pkg()
local TOINSTALL=''
local FORCE=''
if [ "$1" == "--force" ] ; then
if [ "$1" = "--force" ] ; then
FORCE="$1"
shift
fi
......@@ -129,7 +129,7 @@ get_fix_release_pkg()
epm installed apt-conf-branch && echo "apt-conf-branch apt-conf-sisyphus-"
fi
if [ "$FORCE" == "--force" ] ; then
if [ "$FORCE" = "--force" ] ; then
# assure we have set needed release
TOINSTALL="altlinux-release-$TO"
else
......
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