1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 02:37:51 +03:00

ci: optional sudo for deb install in deb builder

This commit is contained in:
Wez Furlong 2021-09-25 18:34:01 -07:00
parent 48c0044673
commit bdc63c0dc2

View File

@ -8,6 +8,11 @@ TAG_NAME=${TAG_NAME:-$(git show -s "--format=%cd-%h" "--date=format:%Y%m%d-%H%M%
HERE=$(pwd)
if test -z "${SUDO+x}" && hash sudo 2>/dev/null; then
SUDO="sudo"
fi
case $OSTYPE in
darwin*)
zipdir=WezTerm-macos-$TAG_NAME
@ -158,7 +163,7 @@ EOF
fakeroot dpkg-deb --build pkg/debian $debname.deb
if [[ "$BUILD_REASON" != '' ]] ; then
sudo apt-get install ./$debname.deb
$SUDO apt-get install ./$debname.deb
fi
mv pkg/debian pkg/wezterm