Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
linkchw committed Aug 15, 2024
1 parent b5ecca8 commit fc96015
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#!/bin/bash

REPO_DIR="$(pwd)name-family"
REPO_DIR="$(pwd)/name-family"

check_if_in_repo() {
if [ "$(basename "$(pwd)")" == "$REPO_DIR" ]; then
return 0
elif [ "$(pwd)" == *"$REPO_DIR"* ]; then
return 0
check_if_in_repo_or_name_family() {
local current_dir_name=$(basename "$(pwd)")
local current_dir_path=$(pwd)

if [ "$current_dir_name" == "name-family" ] || [ "$current_dir_path" == "$REPO_DIR" ]; then
return 0
else
return 1
return 1
fi
}

Expand Down

0 comments on commit fc96015

Please sign in to comment.