[664a1f]: src / unetbootin / vcs-name  Maximize  Restore  History

Download this file

22 lines (15 with data), 200 Bytes

#!/bin/bash

for x in . .. ../..
do

if [ "$(ls -a "$x" | grep '\.git$')" != "" ]
then
echo "git"
exit 0
fi

if [ "$(ls -a "$x" | grep '\.bzr$')" != "" ]
then
echo "bzr"
exit 0
fi

done

echo "none"