Skip to content

Commit

Permalink
Merge pull request #21 from felipealfonsog/development
Browse files Browse the repository at this point in the history
Updates in the code for AUR and others
  • Loading branch information
felipealfonsog authored Mar 7, 2024
2 parents d924198 + 33a630a commit aaf00f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/aur-dev/git_updater.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os

def welcome():
print("Welcome to GitHub Repository Updater!")
print("This script was developed by Computer Science Engineer Felipe Alfonso González - github: github.com/felipealfonsog - under the BSD 3-clause license.")
print("Welcome to GitHub Repository Updater -GitSyncMaster-!")
print("This software was developed by Computer Science Engineer Felipe Alfonso González - Github: github.com/felipealfonsog - Under the BSD 3-clause license.")
print("Developed from Chile with love.")
print("----------------------------------------------------")
print("This script will update all GitHub repositories within the current directory or its subdirectories.")
print("This software will update all GitHub repositories within the current directory or its subdirectories.")

def update_github_repositories(main_directory, include_aur):
print("\nUpdating GitHub repositories...\n")
Expand All @@ -22,9 +22,9 @@ def update_github_repositories(main_directory, include_aur):
def main():
welcome()
current_directory = os.getcwd()
main_directory = input(f"Current directory is: {current_directory}\nDo you want to update repositories here? (Y/N): ")
if main_directory.lower() == 'y':
exclude_choice = input("Do you want to exclude directories with the '-aur' suffix? (Press Enter for Yes, N for No): ").lower()
main_directory = input(f"Current directory is: {current_directory}\nDo you want to update repositories here? (Y/N, default is Y): ")
if main_directory.lower() != 'n':
exclude_choice = input("Do you want to exclude directories with the '-aur' suffix? (Press Enter for Yes, N for No, default is Yes): ").lower()
if exclude_choice == '' or exclude_choice == 'y':
include_aur = False
else:
Expand Down
10 changes: 5 additions & 5 deletions src/aur-dev/git_updater.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

welcome() {
echo "Welcome to GitHub Repository Updater!"
echo "This script was developed by Computer Science Engineer Felipe Alfonso González - github: github.com/felipealfonsog - under the BSD 3-clause license."
echo "Welcome to GitHub Repository Updater -GitSyncMaster-!"
echo "This software was developed by Computer Science Engineer Felipe Alfonso González - Github: github.com/felipealfonsog - Under the BSD 3-clause license."
echo "Developed from Chile with love."
echo "----------------------------------------------------"
echo "This script will update all GitHub repositories within the current directory or its subdirectories."
echo "This software will update all GitHub repositories within the current directory or its subdirectories."
}

update_github_repositories() {
Expand All @@ -25,9 +25,9 @@ update_github_repositories() {
main() {
welcome
current_directory=$(pwd)
read -p "Current directory is: $current_directory. Do you want to update repositories here? (Press Enter for Yes, N for No): " main_directory
read -p "Current directory is: $current_directory. Do you want to update repositories here? (Press Enter for Yes, N for No, default is Yes): " main_directory
if [[ "$main_directory" == '' || "$main_directory" =~ [Yy] ]]; then
read -p "Do you want to exclude directories with the '-aur' suffix? (Press Enter for Yes, N for No): " exclude_choice
read -p "Do you want to exclude directories with the '-aur' suffix? (Press Enter for Yes, N for No, default is Yes): " exclude_choice
if [[ "$exclude_choice" == '' || "$exclude_choice" =~ [Yy] ]]; then
include_aur=false
else
Expand Down
2 changes: 1 addition & 1 deletion src/aur-pkg/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mantenedor: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch>
pkgname=gitsync
pkgver=0.0.7
pkgver=0.0.8
pkgrel=1
pkgdesc="GitSyncMaster: Automate updating multiple Git repositories within a directory structure effortlessly."
arch=('x86_64')
Expand Down

0 comments on commit aaf00f6

Please sign in to comment.