mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
sad
sad
This commit is contained in:
1 parent
f8f27450ab
commit
0058fcd818
1 file changed
+6
-6
+6
-6
@@ -6,11 +6,11 @@ remote_repo="https://github.com/wickedyoda/public-setupfiles.git"
|
|||||||
# Specify the local file path
|
# Specify the local file path
|
||||||
local_file="./pubic-setupfiles"
|
local_file="./pubic-setupfiles"
|
||||||
|
|
||||||
# Check if the local file exists
|
# Check if the local file path exists and is not empty
|
||||||
if [ -f "$local_file" ]; then
|
if [ -d "$local_file" ] && [ -n "$(ls -A $local_file)" ]; then
|
||||||
# Pull the latest updates from the remote repository
|
# Delete the existing directory
|
||||||
git -C "$local_file" pull "$remote_repo"
|
rm -rf "$local_file"
|
||||||
else
|
fi
|
||||||
|
|
||||||
# Clone the remote repository to the local file path
|
# Clone the remote repository to the local file path
|
||||||
git clone "$remote_repo" "$local_file"
|
git clone "$remote_repo" "$local_file"
|
||||||
fi
|
|
||||||
Reference in new issue
Block a user