This commit is contained in:
Eliminater74 2021-08-29 09:26:38 -04:00
parent 7a8c60c186
commit 52acf3c68c
No known key found for this signature in database
GPG Key ID: 2DB13AFD9AF1A53C

View File

@ -13,7 +13,7 @@ USER_NAME="$6"
DESTINATION_REPOSITORY_USERNAME="$7"
TARGET_BRANCH="$8"
COMMIT_MESSAGE="$9"
TARGET_DIRECTORY="$10"
TARGET_DIRECTORY="${10}"
if [ -z "$DESTINATION_REPOSITORY_USERNAME" ]
then
@ -56,6 +56,10 @@ mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
echo "[+] Changing to $SOURCE_BEFORE_DIRECTORY"
cd $SOURCE_BEFORE_DIRECTORY
echo "[+] List contecnts of $SOURCE_DIRECTORY"
ls $SOURCE_DIRECTORY
if [ ! -d "$SOURCE_DIRECTORY" ]
then
echo "ERROR: $SOURCE_DIRECTORY does not exist"