Comments (3)
on linux cmdline(using zypper version 1.14.27 from openSUSE15.1)
$ zypper -V
$ zypper_version=($(zypper -V))
$ echo ${zypper_version[1]}
1.14.27
$ if [[ ${zypper_version[1]} < '1.14.4' ]]; then echo smaller; else echo larger; fi
smaller
which is clearly wrong
rpmdev-vercmp needs the 'zypper-1.14.4' syntax, because the python algorithm requires it
from vagrant-caasp.
Hi,
I don't really understand the problem here but
#zypper_version=($(zypper -V))
zypper_version='1.14.27'
if [[ ${zypper_version[1]} < '1.14.4' ]]
This won't work,
The row you commented out zypper_version=($(zypper -V))
would result in an array, så ${zypper_version[0]
would contain the word zypper and ${zypper_version[1]}
would contain the version.
When you just put the version in the zypper_version variable like this zypper_version='1.14.27
then the the ${zypper_version[1]}' wouldn't contain anything. And the row
if [[ ${zypper_version[1]} < '1.14.4' ]]` would always compare a blank variable with 1.14.4.
You could test this yourself
$> zypper_version=($(zypper -V))
$> echo ${zypper_version[0]}
zypper
$> echo ${zypper_version[1]}
1.14.27
$> unset zypper_version
$> zypper_version='1.14.27
$> echo ${zypper_version[0]}
1.14.27
$> echo ${zypper_version[1]}
anyhow, the zypper_version test in libvirt_setup/openSUSE_vagrant_setup.sh seems to work for me, what is not working for you?
from vagrant-caasp.
Got it, now I understand the issue.
from vagrant-caasp.
Related Issues (20)
- vagrant-libvirt discover bridge interface
- Explore alternate network options for vagrant-libvirt network HOT 1
- Enable swap accounting HOT 2
- Add builtin support for creating/managing users
- Upgrade to helm 3 HOT 2
- Include token in admin.conf for dashboard login
- vagrant setup script produces error in Leap 15.1 HOT 4
- 00.prep_environment.sh fails
- 02.bootstrap auth error HOT 3
- 04.add_workers.sh auth failure HOT 1
- 06.add_k8s_nfs-sc.sh fails HOT 2
- Enhancement ideas HOT 3
- Documentation update needed HOT 1
- Need podman and buildah HOT 1
- Releasing the vagrant box for SLES15 SP1 or CaaSP HOT 1
- Need subuid/subgid set for podman to work rootless HOT 1
- Vagrant 2.2.6 on openSUSE HOT 4
- Add log levels, pass through to skuba HOT 1
- Installing macOS Catalina 10.15 in Windows 64 bit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-caasp.