Auto-update: Sat Aug 3 12:14:26 PDT 2024
This commit is contained in:
parent
50d2bb80ac
commit
3a72c260db
2 changed files with 5 additions and 5 deletions
4
pull
4
pull
|
@ -13,8 +13,8 @@ while IFS= read -r repo_path || [[ -n "$repo_path" ]]; do
|
|||
# Trim whitespace
|
||||
repo_path=$(echo "$repo_path" | xargs)
|
||||
|
||||
# Skip empty lines
|
||||
[ -z "$repo_path" ] && continue
|
||||
# Skip empty lines and lines starting with #
|
||||
[[ -z "$repo_path" || "$repo_path" == \#* ]] && continue
|
||||
|
||||
echo "Processing repository: $repo_path"
|
||||
|
||||
|
|
6
up
6
up
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Path to the file containing the list of repositories
|
||||
REPOS_FILE=~/workshop/repos.txt
|
||||
REPOS_FILE=~/myrepos.txt
|
||||
|
||||
# Check if the repos file exists
|
||||
if [ ! -f "$REPOS_FILE" ]; then
|
||||
|
@ -14,8 +14,8 @@ while IFS= read -r repo_path || [[ -n "$repo_path" ]]; do
|
|||
# Trim whitespace
|
||||
repo_path=$(echo "$repo_path" | xargs)
|
||||
|
||||
# Skip empty lines
|
||||
[ -z "$repo_path" ] && continue
|
||||
# Skip empty lines and lines starting with #
|
||||
[[ -z "$repo_path" || "$repo_path" == \#* ]] && continue
|
||||
|
||||
# Expand tilde to home directory
|
||||
repo_path="${repo_path/#\~/$HOME}"
|
||||
|
|
Loading…
Reference in a new issue