This repository has been archived on 2020-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
vn-repo/vn-rcheck

22 lines
331 B
Bash
Executable File

#!/bin/bash
set -e
changesFile="/tmp/vn-repo.changes"
(
flock -n 200 || exit
if [ -f "$changesFile" ]
then
while read -r line
do
projectName=$(echo $line | cut -d" " -f1)
branch=$(echo $line | cut -d" " -f2)
vn-branch $projectName
done < "$changesFile"
rm $changesFile
fi
) 200> /var/lock/vn-repo.lock