mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
add update file
This commit is contained in:
1 parent
9de75e1fcb
commit
59a0e0bdd9
2 files changed
+16
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user