Update v-commander

This commit is contained in:
myvesta 2024-04-05 15:22:20 +02:00 committed by GitHub
parent 8cc35b43eb
commit 63c4826ac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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