File tree 1 file changed +11
-9
lines changed
1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 11
11
12
12
if dpkg-query --list ' algorand*' & > /dev/null
13
13
then
14
- PKG_INFO=$( dpkg-query --show --showformat=' ${Package} ${Status}\n' ' algorand*' | grep " install ok installed" )
15
- INSTALLED_PKG=$( grep -v algorand-indexer <<< " $PKG_INFO" | awk ' {print $1}' )
16
-
17
- if [ -n " $INSTALLED_PKG " ]
14
+ if PKG_INFO=$( dpkg-query --show --showformat=' ${Package} ${Status}\n' ' algorand*' | grep " install ok installed" )
18
15
then
19
- echo -e " \nAlgorand does not currently support multi-distribution installations!\n\
20
- To install this package, it is necessary to first remove the \` $INSTALLED_PKG \` package:\n\n\
21
- sudo apt-get remove $INSTALLED_PKG \n\
22
- sudo apt-get install $PKG_NAME \n"
23
- exit 1
16
+ INSTALLED_PKG=$( grep -v algorand-indexer <<< " $PKG_INFO" | awk ' {print $1}' )
17
+
18
+ if [ -n " $INSTALLED_PKG " ]
19
+ then
20
+ echo -e " \nAlgorand does not currently support multi-distribution installations!\n\
21
+ To install this package, it is necessary to first remove the \` $INSTALLED_PKG \` package:\n\n\
22
+ sudo apt-get remove $INSTALLED_PKG \n\
23
+ sudo apt-get install $PKG_NAME \n"
24
+ exit 1
25
+ fi
24
26
fi
25
27
fi
26
28
You can’t perform that action at this time.
0 commit comments