mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00
feat: simple script to init a skeleton director for new protocol
This commit is contained in:
parent
dab02c9c2e
commit
89d9465d97
19
scripts/add_new_protocol.sh
Executable file
19
scripts/add_new_protocol.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
# A bash script to add protocol info directory skeleton
|
||||
|
||||
for arg in "$@"
|
||||
do
|
||||
if [ "$arg" == "--help" ] || [ "$arg" == "-h" ]
|
||||
then
|
||||
echo "Pass in the name of the protocol whose info you want to add. e.g: ./add_new_protocol.sh rarible"
|
||||
else
|
||||
mkdir -p ./$arg
|
||||
mkdir -p ./$arg/calls
|
||||
touch ./$arg/event.json
|
||||
touch ./$arg/overview.md
|
||||
touch ./$arg/logo.png
|
||||
touch ./$arg/header.png
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Arg 1: $1"
|
Loading…
Reference in New Issue
Block a user