g++ install is failing because + is treated as a regex control character
This commit is contained in:
parent
4d3d45c02f
commit
13d7657f54
1 changed files with 2 additions and 1 deletions
|
@ -28,7 +28,8 @@ echo "done."
|
|||
|
||||
echo -n "Verifying packages..."
|
||||
for package in $packages; do
|
||||
apt-cache search ^$package$ | grep $package > /dev/null
|
||||
escaped=$(echo $package | sed 's/+/\\+/g')
|
||||
apt-cache search ^$escaped$ | grep $package > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "aborted."
|
||||
echo "Package '$package' not found." >&2
|
||||
|
|
Loading…
Reference in a new issue