Remove redundant mkdir, they're all created on startup
This commit is contained in:
parent
57872194e5
commit
8ad5751715
8
start.sh
8
start.sh
@ -89,7 +89,6 @@ kalender() {
|
||||
# $1 nick
|
||||
# $2 -1 decrease, +1 increase
|
||||
savekarma() {
|
||||
mkdir -p $BOTDIR/karma
|
||||
[ ! -f "$BOTDIR/karma/$1" ] \
|
||||
&& echo 0 > "$BOTDIR/karma/$1"
|
||||
|
||||
@ -147,8 +146,7 @@ karma() {
|
||||
&& say "Echt jetzt, $NICK?"
|
||||
}
|
||||
transparenzbericht() {
|
||||
mkdir -p "$BOTDIR/karma"
|
||||
cd $BOTDIR/karma || return
|
||||
cd $BOTDIR/karma
|
||||
say "Gummipunkte Transparenzbericht:"
|
||||
for i in $(ls)
|
||||
do
|
||||
@ -190,9 +188,7 @@ weather() {
|
||||
say "$(curl -s "https://wttr.in/$l?lang=de&format=%l:+%t+%C+%w+%h+Regen")"
|
||||
}
|
||||
|
||||
mkdir -p "$BOTDIR/irc"
|
||||
mkdir -p "$BOTDIR/seen"
|
||||
mkdir -p "$BOTDIR/karma"
|
||||
mkdir -p "$BOTDIR/{irc,seen,karma}"
|
||||
cd "$BOTDIR"
|
||||
|
||||
echo "connecting."
|
||||
|
Loading…
Reference in New Issue
Block a user