Skip to content
Snippets Groups Projects
Commit 95436c73 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix setup scripts to work with older git versions

parent 33a63abf
No related branches found
No related tags found
1 merge request!38Fix setup scripts to work with older git versions
#!/usr/bin/env bash
echo "Setting up git aliases..."
if ! which clang-format 2>1 1>/dev/null
if ! which clang-format 1>/dev/null 2>&1
then
echo "Warning: ADIOS uses clang-format to enforce style guidelines but no"
echo " clang-format binary was found in tyour path"
......@@ -9,7 +9,7 @@ fi
if ! git config alias.clang-format "!scripts/developer/git/git-clang-format"
then
echo "Error adding clang-format alias"
echo "Waring: Error adding clang-format alias"
fi
exit 0
#!/usr/bin/env bash
echo "Checking GitHub username..."
GHUSER=$(git remote get-url origin | sed 's|.*[:/]\([^/]*\)/adios2.git|\1|')
GHUSER=$(git remote show origin | grep "Fetch URL" | sed 's|.*[:/]\([^/]*\)/adios2.git|\1|')
if [ -z "${GHUSER}" ]
then
echo " Warning: Unable to determine GitHub username. Are you sure you"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment