1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/scripts/integration.sh
Sebastian Malton 1c4d5ec24c fixed script
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-01-09 09:48:04 -05:00

29 lines
552 B
Bash
Executable File

case $1 in
mac)
find ~/Library/Logs/Lens -type f -name *.log -delete
;;
linux)
find ~/.config/Lens -type f -name *.log -delete
;;
win)
find %APPDATA%/Lens -type f -name *.log -delete
;;
esac
yarn build:$1
DEBUG=true yarn integration-runner
if [ $? -ne 0 ]; then
case $1 in
mac)
find ~/Library/Logs/Lens -type f -name *.log -exec cat {} \;
;;
linux)
find ~/.config/Lens -type f -name *.log -exec cat {} \;
;;
win)
find %APPDATA%/Lens -type f -name *.log -exec cat {} \;
;;
esac
fi