Auto-update: Sat Aug 3 12:14:26 PDT 2024

This commit is contained in:
sanj 2024-08-03 12:14:26 -07:00
parent 50d2bb80ac
commit 3a72c260db
2 changed files with 5 additions and 5 deletions

4
pull
View file

@ -13,8 +13,8 @@ while IFS= read -r repo_path || [[ -n "$repo_path" ]]; do
# Trim whitespace # Trim whitespace
repo_path=$(echo "$repo_path" | xargs) repo_path=$(echo "$repo_path" | xargs)
# Skip empty lines # Skip empty lines and lines starting with #
[ -z "$repo_path" ] && continue [[ -z "$repo_path" || "$repo_path" == \#* ]] && continue
echo "Processing repository: $repo_path" echo "Processing repository: $repo_path"

6
up
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# Path to the file containing the list of repositories # Path to the file containing the list of repositories
REPOS_FILE=~/workshop/repos.txt REPOS_FILE=~/myrepos.txt
# Check if the repos file exists # Check if the repos file exists
if [ ! -f "$REPOS_FILE" ]; then if [ ! -f "$REPOS_FILE" ]; then
@ -14,8 +14,8 @@ while IFS= read -r repo_path || [[ -n "$repo_path" ]]; do
# Trim whitespace # Trim whitespace
repo_path=$(echo "$repo_path" | xargs) repo_path=$(echo "$repo_path" | xargs)
# Skip empty lines # Skip empty lines and lines starting with #
[ -z "$repo_path" ] && continue [[ -z "$repo_path" || "$repo_path" == \#* ]] && continue
# Expand tilde to home directory # Expand tilde to home directory
repo_path="${repo_path/#\~/$HOME}" repo_path="${repo_path/#\~/$HOME}"