Page MenuHomeDevCentral

arc-update-repo

Authored By
dereckson
Nov 19 2015, 02:46
Size
673 B
Referenced Files
None
Subscribers
None

arc-update-repo

#!/bin/sh
ROOT_DIR=`git rev-parse --show-toplevel 2>/dev/null`
if [ "$?" -ne "0" ]; then
ROOT_DIR=`hg root 2>/dev/null`
if [ "$?" -ne "0" ]; then
echo "Doesn't seen to be a Git or Mercurial repository."
exit
fi
fi
if [ ! -f $ROOT_DIR/.arcconfig ]; then
echo 'Create a .arcconfig file with "repository.callsign" : "..." (without the leading r) option.'
exit
fi
CALLSIGN=`cat $ROOT_DIR/.arcconfig | jq '."repository.callsign"'`
if [ "$CALLSIGN" = "null" ]; then
echo 'Add to your .arcconfig file a "repository.callsign" : "..." (without the leading r) option.'
exit
fi
echo "{ \"callsigns\": [\"$CALLSIGN\"] }" | arc call-conduit diffusion.looksoon > /dev/null

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11507
Default Alt Text
arc-update-repo (673 B)

Event Timeline