fix shellcheck

This commit is contained in:
Enno Rehling 2019-01-20 03:08:37 +01:00
parent 8eba9d6eaf
commit 55c8b9f72a
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1,2 @@
#!/bin/sh
grep -hiw ERESSEA orders.dir/turn-* | cut -d\ -f2 | sort -u grep -hiw ERESSEA orders.dir/turn-* | cut -d\ -f2 | sort -u

View File

@ -35,7 +35,7 @@ PWFILE="game-$GAME/eressea.db"
if [ ! -e "$PWFILE" ]; then if [ ! -e "$PWFILE" ]; then
PWFILE="game-$GAME/passwd" PWFILE="game-$GAME/passwd"
fi fi
$BIN/checkpasswd.py "$PWFILE" "$FACTION" "$PASSWD" || reply "Das Passwort fuer die Partei $FACTION ist ungueltig" "$BIN/checkpasswd.py" "$PWFILE" "$FACTION" "$PASSWD" || reply "Das Passwort fuer die Partei $FACTION ist ungueltig"
cd "$ERESSEA/game-$GAME/reports" || exit cd "$ERESSEA/game-$GAME/reports" || exit
if [ ! -e "${FACTION}.sh" ]; then if [ ! -e "${FACTION}.sh" ]; then
@ -46,7 +46,7 @@ fi
bash "${FACTION}.sh" "$EMAIL" || reply "Unbekannte Partei $FACTION" bash "${FACTION}.sh" "$EMAIL" || reply "Unbekannte Partei $FACTION"
OWNER=$($BIN/getfaction.py "$PWFILE" "$FACTION") OWNER=$("$BIN/getfaction.py" "$PWFILE" "$FACTION")
if [ ! -z "$OWNER" ]; then if [ ! -z "$OWNER" ]; then
echo "Der Report Deiner Partei wurde an ${EMAIL} gesandt." \ echo "Der Report Deiner Partei wurde an ${EMAIL} gesandt." \
| mutt -s "Reportnachforderung Partei ${FACTION}" "$OWNER" | mutt -s "Reportnachforderung Partei ${FACTION}" "$OWNER"