Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

add-lesspass-pure.sh 762 B

pirms 7 gadiem
12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env bash
  2. # context verification
  3. if [ ! -f README.md ]; then
  4. echo "You seems to be in the wrong directory"
  5. echo "Execute this script from the root of LessPass with ./scripts/${0##*/}"
  6. exit 1
  7. fi
  8. bash ./scripts/check-status.sh
  9. if [ "$?" == "1" ];then exit 1;fi
  10. # verification completed
  11. function commit-with-message {
  12. git add .
  13. git commit -m 'Adding the lastest version of lesspass-pure'
  14. git push --tags origin master
  15. }
  16. function cmd {
  17. cd $1
  18. rm -rf package-lock.json node_modules
  19. npm install
  20. npm install --save lesspass-pure
  21. npm run build
  22. commit-with-message
  23. cd ..
  24. }
  25. submodules="frontend cozy desktop webextension"
  26. for submodule in ${submodules}
  27. do
  28. cmd ${submodule} &
  29. done
  30. wait
  31. commit-with-message