mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
ci: optional sudo for deb install in deb builder
This commit is contained in:
parent
48c0044673
commit
bdc63c0dc2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user