dropshell release 2025.0513.2156
This commit is contained in:
parent
1dd4a7958d
commit
524d3df1b2
11
install.sh
11
install.sh
@ -3,6 +3,12 @@ set -e
|
||||
|
||||
# download and install dropshell
|
||||
|
||||
# Check if running as root
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
print_error "Please run this script as root (use sudo)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 1. Determine architecture
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
@ -33,8 +39,9 @@ fi
|
||||
|
||||
chmod +x "$TMPDIR/dropshell"
|
||||
|
||||
docker run --rm -v "$TMPDIR:/tmp" -v /usr/local/bin:/target alpine sh -c "cp /tmp/dropshell /target/dropshell && ln -s /target/dropshell /target/ds"
|
||||
rm "$TMPDIR/dropshell"
|
||||
cp "$TMPDIR/dropshell" /usr/local/bin/dropshell
|
||||
ln -s /usr/local/bin/dropshell /usr/local/bin/ds
|
||||
rm -rf "$TMPDIR"
|
||||
|
||||
echo "dropshell installed successfully to /usr/local/bin/dropshell"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user