summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpython-updater10
1 files changed, 5 insertions, 5 deletions
diff --git a/python-updater b/python-updater
index 179b6fa..2955b57 100755
--- a/python-updater
+++ b/python-updater
@@ -133,9 +133,9 @@ get_old_pyver() {
# get_portage_python(oldpy,newpy)
# Find where portage is, in pythonX.Y or somewhere else?
get_portage_python() {
- if [[ $# -lt 3 ]]; then
- eerror "Missing arguments."
- exit 1
+ if [[ $# -lt 2 ]]; then
+ eerror "get_portage_python(): Missing arguments."
+ exit 1
fi
local oldpy="$1" newpy="$2"
@@ -336,7 +336,7 @@ for content in `find ${PKG_DBDIR}/ -name CONTENTS`; do
# Check if package is in PKGS_MANUAL
if [[ CHECK_MANUAL -ne 0 ]]; then
for pkg in ${PKGS_MANUAL}; do
- if [ -z "${CATPKG##${pkg}}" ]; then
+ if [[ -z "${CATPKG##${pkg}}" ]]; then
exception=2
break;
fi
@@ -444,7 +444,7 @@ export EMERGE_DEFAULT_OPTS="${emerge_default_opts# }"
# (Pretend to) remerge packages
if [[ -n "${PKGS_TO_REMERGE}" ]]; then
pmscmd="${CUSTOM_PMS_COMMAND}"
- [ -z "${pmscmd}" ] && pmscmd="${PMS_COMMAND[${PMS_INDEX}]}"
+ [[ -z "${pmscmd}" ]] && pmscmd="${PMS_COMMAND[${PMS_INDEX}]}"
cmd="${pmscmd} ${PMS_OPTIONS[${PMS_INDEX}]} ${PKGS_TO_REMERGE}"
einfo ${cmd}
${cmd}