File: test.sh

package info (click to toggle)
powerline-taskwarrior 0.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: python: 184; sh: 13; makefile: 3
file content (16 lines) | stat: -rwxr-xr-x 357 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

PTW_DIR=/opt/powerline-taskwarrior

cd $PTW_DIR
pip${PYTHON_VERSION} install .
TASK_TEXT=$(date | md5sum | head -c 16)
task add $TASK_TEXT
export XDG_CONFIG_DIRS=$PTW_DIR/test/.config
LOG_FILE=/tmp/powerline-error.log
if [[ "$(powerline shell right | tee $LOG_FILE | fgrep -c $TASK_TEXT)" -eq 1 ]]; then
  exit 0
else
  cat $LOG_FILE
  exit 1
fi