Files
public-setupfiles/update-from_repo.sh
T
2024-05-09 15:48:15 -05:00

16 lines
514 B
Bash

#!/bin/bash
# Specify the remote repository URL
remote_repo="https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/updates/update-public-setupfiles.sh"
# Specify the local file path
local_file="./update-public-setupfiles.sh"
# Check if the local file exists
if [ -f "$local_file" ]; then
# Pull the latest updates from the remote repository
git -C "$local_file" pull "$remote_repo"
else
# Clone the remote repository to the local file path
git clone "$remote_repo" "$local_file"
fi