From 53b3a0a955f69c59b3b304a789cd1f4d92a3dd5b Mon Sep 17 00:00:00 2001 From: Galoz <40101938+galoz11@users.noreply.github.com> Date: Sat, 7 Jun 2025 17:46:57 +0300 Subject: [PATCH] 3 --- README.md | 8 +++++++- code_server.sh | 6 +++--- functions_test.sh | 11 +++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 functions_test.sh diff --git a/README.md b/README.md index c7e7131..40d185d 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# proxy \ No newline at end of file +# proxy + +to use the scripts, type: +bash -c "$(curl -fsSL https://raw.githubusercontent.com/galoz11/proxy/refs/heads/main/.sh)" + +example: +bash -c "$(curl -fsSL https://raw.githubusercontent.com/galoz11/proxy/refs/heads/main/code_server.sh)" diff --git a/code_server.sh b/code_server.sh index 6dc0fc8..d5f4615 100644 --- a/code_server.sh +++ b/code_server.sh @@ -22,9 +22,9 @@ alias die='EXIT=$? LINE=$LINENO error_exit' trap die ERR echo "Installing Dependencies" -apt-get update &>/dev/null -apt-get install -y curl &>/dev/null -apt-get install -y git &>/dev/null +apt update &>/dev/null +apt install -y curl &>/dev/null +apt install -y git &>/dev/null echo "Installed Dependencies" VERSION=$(curl -fsSL https://api.github.com/repos/coder/code-server/releases/latest | diff --git a/functions_test.sh b/functions_test.sh new file mode 100644 index 0000000..649d05e --- /dev/null +++ b/functions_test.sh @@ -0,0 +1,11 @@ +#!/bin/bash + + + +if command -v pveversion >/dev/null 2>&1; then + echo -e "⚠️ Can't Install on Proxmox " + exit +fi + +header_info +