aboutsummaryrefslogblamecommitdiffhomepage
path: root/tests/fake.sh
blob: 75bc0514d8b22407f45355259ce8ae74936b2ddb (plain) (tree)
1
2
3
4
5
6
7





                                                               
                






                                                                              
#!/usr/bin/env bash

binary="${0/*\/}"
fakeCommit="aaa000aaa000aaa000aaa000aaa000aaa000aaa0"

if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then
    echo "2.6.1"
elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then
    echo "2020-02-02T20:20:02+02:00  OK         DEPLOY     ${fakeCommit}  Git"
elif [ "${binary}" = "git" ]; then
    echo "${fakeCommit}"
else
    echo "${binary} called with arguments: ${*}"
fi