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
Loading
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Setting up git aliases..." echo "Setting up git aliases..."
if ! which clang-format 2>1 1>/dev/null if ! which clang-format 1>/dev/null 2>&1
then then
echo "Warning: ADIOS uses clang-format to enforce style guidelines but no" echo "Warning: ADIOS uses clang-format to enforce style guidelines but no"
echo " clang-format binary was found in tyour path" echo " clang-format binary was found in tyour path"
...@@ -9,7 +9,7 @@ fi ...@@ -9,7 +9,7 @@ fi
if ! git config alias.clang-format "!scripts/developer/git/git-clang-format" if ! git config alias.clang-format "!scripts/developer/git/git-clang-format"
then then
echo "Error adding clang-format alias" echo "Waring: Error adding clang-format alias"
fi fi
exit 0 exit 0
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Checking GitHub username..." 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}" ] if [ -z "${GHUSER}" ]
then then
echo " Warning: Unable to determine GitHub username. Are you sure you" 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