mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
g++ install is failing because + is treated as a regex control character
This commit is contained in:
parent
4d3d45c02f
commit
13d7657f54
|
@ -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