captainhook
Basic Pleskian
Username:
TITLE
Git deploy actions script not recognising end of if
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian v18.0.52_build1800230516.12 os_RedHat el8, Rocky Linux 8.8 (Green Obsidian),
PROBLEM DESCRIPTION
Git deploy actions seems to not be parsing if statement correctly and causing deployment to fail.
STEPS TO REPRODUCE
ACTUAL RESULT
When I hit deploy, I see the following error:
/bin/sh: -c: line 1: syntax error: unexpected end of file
EXPECTED RESULT
The deployment should not fail.
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug
TITLE
Git deploy actions script not recognising end of if
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk Obsidian v18.0.52_build1800230516.12 os_RedHat el8, Rocky Linux 8.8 (Green Obsidian),
PROBLEM DESCRIPTION
Git deploy actions seems to not be parsing if statement correctly and causing deployment to fail.
STEPS TO REPRODUCE
- Add Git repo to site
- Modify deploy actions with code below
- Deploy the repository
Bash:
if [ "$remotehash" != "$localhash" ]; then
echo "change found"
else
echo "no change found, deploy skipped"
fi
ACTUAL RESULT
When I hit deploy, I see the following error:
/bin/sh: -c: line 1: syntax error: unexpected end of file
EXPECTED RESULT
The deployment should not fail.
ANY ADDITIONAL INFORMATION
(DID NOT ANSWER QUESTION)
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM
Confirm bug