You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
273 B

#!/bin/bash
#git show-ref refs/heads/master | cut -d " " -f 1 | cut -c 1-10
if [ -e "/usr/bin/git" ] && [ -e ".git" ]; then
git show-ref refs/heads/master | cut -d " " -f 1 | cut -c 1-10;
elif [ -e "git_revision" ]; then
cat git_revision | cut -c 1-10;
fi
exit;