Skip to content

Commit 1180980

Browse files
create setup.sh #4
1 parent 6ece844 commit 1180980

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
# sudo check
4+
if [ "$(id -u)" != "0" ]; then
5+
if ! command -v sudo >/dev/null 2>&1; then
6+
echo "This script requires sudo or root privileges but none present."
7+
exit 1
8+
else
9+
SUDO="$(command -v sudo)"
10+
fi
11+
fi
12+
13+
deps="qemu-user-static binfmt-support"
14+
15+
$SUDO apt install -y "$deps"

0 commit comments

Comments
 (0)