mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-01-22 05:48:26 -05:00
17 lines
330 B
Bash
Executable File
17 lines
330 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
cat >/dev/null # Just discard stdin data
|
|
|
|
if [[ -f /proc/$PPID/cmdline ]]; then
|
|
while read -d $'\0' arg ; do
|
|
if [[ "$arg" == '--tags' ]] ; then
|
|
exit 0
|
|
fi
|
|
done </proc/$PPID/cmdline
|
|
fi
|
|
|
|
branch=`git rev-parse --abbrev-ref HEAD`
|
|
if [[ "$branch" = master && "$*" == *github* ]]; then
|
|
make gensend
|
|
fi
|