From 677aab4175a09cae57c96dba4b9e92e6591de205 Mon Sep 17 00:00:00 2001 From: gibbyb Date: Thu, 18 Dec 2025 18:18:12 +0000 Subject: [PATCH] Everything now works --- .dockerignore | 2 -- docker/host-bang | 51 ---------------------------------------------- docker/update-bang | 51 ---------------------------------------------- src/bang.ts | 2 +- 4 files changed, 1 insertion(+), 105 deletions(-) delete mode 100755 docker/host-bang delete mode 100755 docker/update-bang diff --git a/.dockerignore b/.dockerignore index 6674348..03fadcc 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,3 @@ -.env -.env.* .env.example .git .gitignore diff --git a/docker/host-bang b/docker/host-bang deleted file mode 100755 index 750f8fe..0000000 --- a/docker/host-bang +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -# Function to check if we're in the correct directory -check_directory() { - if [ -d "docker" ] && [ -f "package.json" ]; then - return 0 # We're in the root directory - fi - return 1 -} - -# Initialize root_dir -root_dir="" - -# Check if argument is provided -if [ $# -eq 1 ]; then - # Use provided path - if [ -d "$1" ]; then - root_dir="$1" - cd "$root_dir" || exit 1 - else - echo "Error: Provided directory does not exist" - exit 1 - fi -else - # No argument provided, try to determine location - current_dir=$(basename "$(pwd)") - - if [ "$current_dir" = "docker" ]; then - cd .. || exit 1 - elif [ "$current_dir" != "Bang" ]; then - echo "Error: Not in the correct directory and no valid path provided" - echo "Please either:" - echo "1. Run this script from the Bang root directory" - echo "2. Run this script from the docker directory" - echo "3. Provide the path to the Bang root directory as an argument" - exit 1 - fi -fi - -# Verify we're in the correct directory -if ! check_directory; then - echo "Error: Not in the correct directory structure" - echo "Make sure you're in a directory with 'docker' folder and package.json" - exit 1 -fi - -pnpm install -pnpm build -cd docker || exit 1 -sudo podman compose up -d -cd .. diff --git a/docker/update-bang b/docker/update-bang deleted file mode 100755 index ad27d17..0000000 --- a/docker/update-bang +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -# Function to check if we're in the correct directory -check_directory() { - if [ -d "docker" ] && [ -f "package.json" ]; then - return 0 # We're in the root directory - fi - return 1 -} - -# Initialize root_dir -root_dir="" - -# Check if argument is provided -if [ $# -eq 1 ]; then - # Use provided path - if [ -d "$1" ]; then - root_dir="$1" - cd "$root_dir" || exit 1 - else - echo "Error: Provided directory does not exist" - exit 1 - fi -else - # No argument provided, try to determine location - current_dir=$(basename "$(pwd)") - - if [ "$current_dir" = "docker" ]; then - cd .. || exit 1 - elif [ "$current_dir" != "Bang" ]; then - echo "Error: Not in the correct directory and no valid path provided" - echo "Please either:" - echo "1. Run this script from the Bang root directory" - echo "2. Run this script from the docker directory" - echo "3. Provide the path to the Bang root directory as an argument" - exit 1 - fi -fi - -# Verify we're in the correct directory -if ! check_directory; then - echo "Error: Not in the correct directory structure" - echo "Make sure you're in a directory with 'docker' folder and package.json" - exit 1 -fi - -git pull -cd docker || exit 1 -sudo podman compose down -sudo podman compose up -d -cd .. diff --git a/src/bang.ts b/src/bang.ts index 22f1804..54c6801 100644 --- a/src/bang.ts +++ b/src/bang.ts @@ -29,7 +29,7 @@ export const bangs = [ d: GITEA_URL, r: 0, s: "Gitea", - sc: "Cryptocurrency", + sc: "Git", t: "tea", u: `${GITEA_URL}/?repo-search-query={{{s}}}`, },