mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-05 00:05:45 -06:00
Refactor entrypoint.sh directory listing and conditional logic
This commit is contained in:
parent
fa622ad30b
commit
7a84e4fb52
@ -113,16 +113,16 @@ 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"
|
||||||
|
|
||||||
echo "[+] Listing Current Directory Location"
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
echo "[+] Listing root Location"
|
|
||||||
ls -al /
|
|
||||||
|
|
||||||
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "[+] Listing Current Directory Location"
|
||||||
|
ls -al
|
||||||
|
|
||||||
|
echo "[+] Listing root Location"
|
||||||
|
ls -al /
|
||||||
|
|
||||||
|
mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
||||||
|
|
||||||
# if source directory is set
|
# if source directory is set
|
||||||
if [ -n "$SOURCE_DIRECTORY" ]
|
if [ -n "$SOURCE_DIRECTORY" ]
|
||||||
then
|
then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user