mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-11-06 10:38:11 -07:00
Refactor entrypoint.sh directory listing and conditional logic
This commit is contained in:
parent
fa622ad30b
commit
7a84e4fb52
@ -113,6 +113,7 @@ then
|
|||||||
|
|
||||||
echo "[+] Creating (now empty) $ABSOLUTE_TARGET_DIRECTORY"
|
echo "[+] Creating (now empty) $ABSOLUTE_TARGET_DIRECTORY"
|
||||||
mkdir -p "$ABSOLUTE_TARGET_DIRECTORY"
|
mkdir -p "$ABSOLUTE_TARGET_DIRECTORY"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[+] Listing Current Directory Location"
|
echo "[+] Listing Current Directory Location"
|
||||||
ls -al
|
ls -al
|
||||||
@ -121,7 +122,6 @@ then
|
|||||||
ls -al /
|
ls -al /
|
||||||
|
|
||||||
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
||||||
fi
|
|
||||||
|
|
||||||
# if source directory is set
|
# if source directory is set
|
||||||
if [ -n "$SOURCE_DIRECTORY" ]
|
if [ -n "$SOURCE_DIRECTORY" ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user