privateone commited on
Commit
c68e54b
·
verified ·
1 Parent(s): 32c2463

Update init.sh

Browse files
Files changed (1) hide show
  1. init.sh +3 -2
init.sh CHANGED
@@ -16,9 +16,10 @@ if [ -n "$GITHUB_PAT" ]; then
16
  # Clone only if the target directory does not exist
17
  if [ ! -d "$TARGET_DIR" ]; then
18
  git clone -b "$BRANCH" "https://blendersb:${GITHUB_PAT}@github.com/blendersb/teleapi.git" "$TARGET_DIR"
19
-
 
20
  echo "📝 Latest Git Commit:"
21
- git log -1 --pretty=format:"🔹 %h %s by %an on %ad" --date=short
22
  else
23
  echo "✅ Repository already cloned at $TARGET_DIR"
24
  fi
 
16
  # Clone only if the target directory does not exist
17
  if [ ! -d "$TARGET_DIR" ]; then
18
  git clone -b "$BRANCH" "https://blendersb:${GITHUB_PAT}@github.com/blendersb/teleapi.git" "$TARGET_DIR"
19
+ cd "$TARGET_DIR"
20
+
21
  echo "📝 Latest Git Commit:"
22
+ git log -1 --pretty=format:"🔹 %h %s by %an on %ad" --date=short
23
  else
24
  echo "✅ Repository already cloned at $TARGET_DIR"
25
  fi