make prepush hook executable (#2076)

pull/2079/head
Divyansh Singh 2 years ago committed by GitHub
parent 06257f2f3f
commit f1f8fa0e43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -33,7 +33,9 @@ if [ -t 1 ]; then
read yn
if [[ "$yn" == [Yy]* ]]; then
echo "$hook_script" > "$hook_script_path"
echo "pre-push hook installed to $hook_script_path"
# make the hook executable
chmod ug+x "$hook_script_path"
echo "pre-push hook installed to $hook_script_path and made executable"
fi
fi

Loading…
Cancel
Save