protoc distribution cannot make install

so do the `cp -r` just like the checkinstall part does
This commit is contained in:
Zach C 2023-08-13 12:25:15 -05:00
parent 33c77c7e13
commit 382b4f9786

View File

@ -10,7 +10,7 @@ if [ "$EUID" -ne 0 ]; then
sudo checkinstall --pkgversion=$VERSION -y cp -r bin include /usr/local/ sudo checkinstall --pkgversion=$VERSION -y cp -r bin include /usr/local/
cp *.deb ~ cp *.deb ~
else else
sudo make install sudo cp -r bin include /usr/local/
fi fi
popd popd
sudo rm -rf /tmp/protoc-install sudo rm -rf /tmp/protoc-install
@ -19,7 +19,7 @@ else
checkinstall --pkgversion=$VERSION -y cp -r bin include /usr/local/ checkinstall --pkgversion=$VERSION -y cp -r bin include /usr/local/
cp *.deb ~ cp *.deb ~
else else
make install cp -r bin include /usr/local/
fi fi
popd popd
rm -rf /tmp/protoc-install rm -rf /tmp/protoc-install