Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12587370
arc-update-repo.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
705 B
Referenced Files
None
Subscribers
None
arc-update-repo.sh
View Options
#!/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 seem 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
=
$(
jq
'."repository.callsign"'
<
"
$ROOT_DIR
/.arcconfig"
)
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
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Nov 13, 15:38 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3160087
Default Alt Text
arc-update-repo.sh (705 B)
Attached To
Mode
rWK Wynter Kitro utilities
Attached
Detach File
Event Timeline
Log In to Comment