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
|
||||
HAS_PARAMETERS=0
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
COUNTER=$((COUNTER + 1))
|
||||
if [ $COUNTER -le $numargs ]; then
|
||||
HAS_PARAMETERS=1
|
||||
answer=$1
|
||||
shift
|
||||
else
|
||||
if [ $HAS_PARAMETERS -eq 1 ]; then
|
||||
exit;
|
||||
fi
|
||||
read -p 'What to do: ' answer
|
||||
fi
|
||||
|
||||
|
@ -602,8 +607,4 @@ do
|
|||
echo "======"
|
||||
fi
|
||||
|
||||
if [ $numargs -gt 0 ]; then
|
||||
exit;
|
||||
fi
|
||||
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue