Skip to content

Commit

Permalink
check firejail version
Browse files Browse the repository at this point in the history
  • Loading branch information
gibix committed Aug 13, 2018
1 parent 73cf654 commit 1789ac2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions orjail
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,12 @@ fi

FIREJAILBIN=
if [ $USEFIREJAIL = y ]; then
firejail_version=$(firejail --version | grep -io "9.[0-9]\\{2\\}")
if [[ $(echo "$firejail_version>9.44" | bc) -eq 0 ]]; then
printv R "orjail requires at least firejail 0.99.44.10 to run."
exit 1
fi

FIREJAILBIN=firejail
fi

Expand Down

0 comments on commit 1789ac2

Please sign in to comment.