-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42a8469
commit d6eee62
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
# This script gets run in weird environments that have been stripped of just | ||
# about every inessential thing. In order to keep this script versatile, we | ||
# just install 'sudo' and use it like normal if it doesn't exist. If it doesn't | ||
# exist, we assume we're root. (Otherwise we ain't doing much of anything | ||
# anyway.) | ||
if ! command -V sudo; then | ||
apt-get update | ||
apt-get install -y --no-install-recommends sudo | ||
fi | ||
sudo apt-get update | ||
sudo apt-get install -y --no-install-recommends \ | ||
zsh xz-utils liblz4-tool musl-tools brotli zstd |