From 59a0e0bdd93cccb4da037a5ebd7dd3aa0d1f8af6 Mon Sep 17 00:00:00 2001 From: WickedYoda <68271168+wickedyoda@users.noreply.github.com> Date: Thu, 9 May 2024 15:48:15 -0500 Subject: [PATCH] add update file --- update-from repo.sh | 0 update-from_repo.sh | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) delete mode 100644 update-from repo.sh create mode 100644 update-from_repo.sh diff --git a/update-from repo.sh b/update-from repo.sh deleted file mode 100644 index e69de29..0000000 diff --git a/update-from_repo.sh b/update-from_repo.sh new file mode 100644 index 0000000..c2cc5ac --- /dev/null +++ b/update-from_repo.sh @@ -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 \ No newline at end of file