Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script error #13

Open
LeOS-GSI opened this issue Jun 22, 2023 · 2 comments · May be fixed by #14
Open

script error #13

LeOS-GSI opened this issue Jun 22, 2023 · 2 comments · May be fixed by #14

Comments

@LeOS-GSI
Copy link

the system has installed pv 1.6.20, but script is still stopping and showing the error:
"pv is lower than required version: 1.6.6"

seems that thi part isn't working well:

  else
    v=`echo $pv | head -n 1 | cut -d " " -f2`
    if [ "$v" \< "1.6.6" ]; then
      echo "$v of pv is lower than required version: 1.6.6"
      exit 1
    fi
@AndDiSa
Copy link
Owner

AndDiSa commented Jun 23, 2023

I suppose the textual comparison "1.6.6" < "1.6.20" evaluates to false as textual "6" > "20"
... not sure how to solve this easily without much splitting, looping,etc.

@LeOS-GSI
Copy link
Author

In my community wie have removed this sentence complete :))

I think you only can convert the strings to numbers, and compare them afterwards

LowMem added a commit to LowMem/android_backup_project that referenced this issue Aug 4, 2023
This allows to work in current Debian stable version (v12.1 - Bookworm).

It fixes AndDiSa#13.
@LowMem LowMem linked a pull request Aug 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants