Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add lock commands to util clone and pull #507

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ clone() {
repo=$(echo $line | cut -f1 -d" " | sed 's/https:\/\//git@/' | sed 's/\//:/')
id=$(echo $line | cut -f2 -d" ")
git clone $repo $id
if command -v poetry &> /dev/null
then
poetry lock
fi
done
cd ..
}
Expand All @@ -23,11 +27,31 @@ pull() {
id=$(echo $line | cut -f2 -d" ")
cd $id
git pull
if command -v poetry && command -v npm &> /dev/null
then
poetry lock
poetry install
npm install
fi
cd ..
done
cd ..
}

# lint
lint() {
cd extensions
jq -r "$jq_ext_cmd" ../extensions.json | while read -r line
do
# repo=$(echo $line | cut -f1 -d" " | sed 's/https:\/\//git@/' | sed 's/\//:/')
id=$(echo $line | cut -f2 -d" ")
cd $id
echo "LINTING $id !!!!!!!!"
make
done
cd ..
}

# gives you LNbits env variables for all extensions
env() {
env=$(jq -rj '[.extensions[].id] | unique | .[]+","' ./extensions.json | sed 's/.$//')
Expand Down
Loading