2011-01-20 23:00:27 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
update()
|
|
|
|
{
|
|
|
|
|
|
|
|
git pull origin master
|
|
|
|
|
|
|
|
}
|
2011-01-20 23:06:39 +01:00
|
|
|
if [ -z $1 ]; then
|
|
|
|
var="nothing"
|
|
|
|
else
|
|
|
|
var=$1
|
|
|
|
fi
|
2011-01-20 23:00:27 +01:00
|
|
|
|
2011-01-20 23:06:39 +01:00
|
|
|
if [ $var = "update" ]; then
|
2011-01-20 23:00:27 +01:00
|
|
|
update
|
2011-01-20 23:06:39 +01:00
|
|
|
exit 0
|
2011-01-20 23:00:27 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "end of script"
|