Commit 6f2507b2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

loginhsh: skip install if no packages for install

parent 9429fe94
......@@ -122,7 +122,9 @@ check_locking
UTILPKG=''
if [ -n "$QUIETMODE" ] ; then
docmd $HSH-install $HASHERDIR --wait-lock $UTILPKG $LISTNAMES || fatal "Error with install"
if [ -n "$UTILPKG$LISTNAMES" ] ; then
docmd $HSH-install $HASHERDIR --wait-lock $UTILPKG $LISTNAMES || fatal "Error with install"
fi
if [ -n "$RUNCOMMAND" ] ; then
docmd $HSH-run $HASHERDIR $SHELLHASHERARG $ROOTER --wait-lock -- $RUNCOMMAND
......@@ -152,7 +154,9 @@ UTILPKG=""
SHELLHASHERARG="$SHELLHASHERARG $ALLOWX"
docmd $HSH-install $HASHERDIR --wait-lock $UTILPKG $LISTNAMES || fatal "Error with install"
if [ -n "$UTILPKG$LISTNAMES" ] ; then
docmd $HSH-install $HASHERDIR --wait-lock $UTILPKG $LISTNAMES || fatal "Error with install"
fi
if [ -n "$RUNCOMMAND" ] ; then
docmd $HSH-run $HASHERDIR $SHELLHASHERARG $ROOTER --wait-lock -- $RUNCOMMAND
......
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