fix shell hinting
This commit is contained in:
parent
c9ec93d456
commit
77cb1f013a
6 changed files with 41 additions and 14 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PASSWD_FILE="/etc/squid/passwd"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Function to check dock size
|
||||
check_dock() {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Default values
|
||||
VERBOSE=false
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Set timezone to US Eastern (handles both EST and EDT correctly)
|
||||
export TZ="America/New_York"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Check if the Metal HUD is currently enabled
|
||||
MTL_STATUS=$(/bin/launchctl getenv MTL_HUD_ENABLED 2>/dev/null)
|
||||
|
|
|
|||
27
scripts/update-forgejo.sh
Normal file
27
scripts/update-forgejo.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <version>"
|
||||
echo "Example: $0 11.0.10"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION="$1"
|
||||
|
||||
case "$(uname -m)" in
|
||||
x86_64) ARCH="amd64" ;;
|
||||
aarch64) ARCH="arm64" ;;
|
||||
armv7l) ARCH="arm-6" ;;
|
||||
*)
|
||||
echo "Unsupported architecture: $(uname -m)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
BINARY="forgejo-${VERSION}-linux-${ARCH}"
|
||||
|
||||
wget "https://codeberg.org/forgejo/forgejo/releases/download/v${VERSION}/${BINARY}"
|
||||
chmod +x "$BINARY"
|
||||
systemctl stop forgejo
|
||||
cp "$BINARY" /usr/local/bin/forgejo
|
||||
systemctl start forgejo
|
||||
Loading…
Add table
Add a link
Reference in a new issue