mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Update v-commander
This commit is contained in:
parent
8cc35b43eb
commit
63c4826ac0
1 changed files with 5 additions and 4 deletions
|
@ -119,15 +119,20 @@ apt_update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
COUNTER=0
|
COUNTER=0
|
||||||
|
HAS_PARAMETERS=0
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
|
|
||||||
COUNTER=$((COUNTER + 1))
|
COUNTER=$((COUNTER + 1))
|
||||||
if [ $COUNTER -le $numargs ]; then
|
if [ $COUNTER -le $numargs ]; then
|
||||||
|
HAS_PARAMETERS=1
|
||||||
answer=$1
|
answer=$1
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
|
if [ $HAS_PARAMETERS -eq 1 ]; then
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
read -p 'What to do: ' answer
|
read -p 'What to do: ' answer
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -602,8 +607,4 @@ do
|
||||||
echo "======"
|
echo "======"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $numargs -gt 0 ]; then
|
|
||||||
exit;
|
|
||||||
fi
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue