From 524d3df1b22811c34891ba5bcbc630d6499b11a0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 13 May 2025 21:56:24 +1200 Subject: [PATCH] dropshell release 2025.0513.2156 --- install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e086569..041a172 100755 --- a/install.sh +++ b/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"