File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ for arg in "$@"; do
1818 esac
1919done
2020
21- if dpkg-query --show libigc1 & > /dev/null; then
21+ if dpkg-query --show libigc2 & > /dev/null; then
22+ export LIBIGC1_VERSION=$( dpkg-query --show --showformat=' ${version}\n' libigc2 | grep -oP ' .+(?=~)' )
23+ elif dpkg-query --show libigc1 & > /dev/null; then
2224 export LIBIGC1_VERSION=$( dpkg-query --show --showformat=' ${version}\n' libigc1 | grep -oP ' .+(?=~)' )
2325else
2426 export LIBIGC1_VERSION=" Not Installed"
3234 export LEVEL_ZERO_VERSION=" Not Installed"
3335fi
3436
35- if dpkg-query --show libigc1 & > /dev/null; then
37+ if dpkg-query --show libigc2 & > /dev/null; then
38+ export AGAMA_VERSION=$( dpkg-query --show --showformat=' ${version}\n' libigc2 | sed ' s/.*-\(.*\)~.*/\1/' )
39+ elif dpkg-query --show libigc1 & > /dev/null; then
3640 export AGAMA_VERSION=$( dpkg-query --show --showformat=' ${version}\n' libigc1 | sed ' s/.*-\(.*\)~.*/\1/' )
3741else
3842 export AGAMA_VERSION=" Not Installed"
You can’t perform that action at this time.
0 commit comments