diff options
| author | kj_sh604 | 2026-05-19 20:27:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-05-19 20:27:35 -0400 |
| commit | dcc30c5b864ffca791f50ff7f68e98097f3a878f (patch) | |
| tree | 53d971dd75e9ef248604873916f4c1b38055b78c /code-server-wrapper.sh | |
| parent | df6b874be8695e87c50f65b7da2667fc726f1a6c (diff) | |
refactor: wrapper script rename and build messages
Diffstat (limited to 'code-server-wrapper.sh')
| -rwxr-xr-x | code-server-wrapper.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/code-server-wrapper.sh b/code-server-wrapper.sh deleted file mode 100755 index 612d2ab..0000000 --- a/code-server-wrapper.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -APPIMAGE_DIR="/opt/code-server-appimage" - -# - find the AppImage; fail clearly if missing or ambiguous -_match="$(find "$APPIMAGE_DIR" -maxdepth 1 -name 'code-server-*.AppImage' 2>/dev/null)" -_count="$(printf '%s\n' "$_match" | grep -c 'AppImage' 2>/dev/null || echo 0)" - -if [ "$_count" -eq 0 ]; then - printf 'error: no code-server AppImage found in %s\n' "$APPIMAGE_DIR" >&2 - exit 1 -fi - -if [ "$_count" -gt 1 ]; then - printf 'error: multiple AppImages found in %s - keep only one:\n' "$APPIMAGE_DIR" >&2 - printf '%s\n' "$_match" >&2 - exit 1 -fi - -APPIMAGE="$_match" -export APPIMAGE_EXTRACT_AND_RUN=1 -exec "$APPIMAGE" "$@" |
