Commit b232f21e authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix some bashisms

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