File: vcs-name

package info (click to toggle)
unetbootin 575-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,680 kB
  • sloc: cpp: 6,221; sh: 70; makefile: 19
file content (27 lines) | stat: -rwxr-xr-x 195 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

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

if [ -d "$x/.git" ]
then
echo "git"
exit 0
fi

if [ -d "$x/.hg" ]
then
echo "hg"
exit 0
fi

if [ -d "$x/.bzr" ]
then
echo "bzr"
exit 0
fi

done

echo "none"