added edit option

This commit is contained in:
Alexander Bocken 2021-04-23 10:12:43 +02:00
parent 65e57ca2da
commit dfa24a8967
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

8
bt
View File

@ -78,6 +78,14 @@ startup(){
fi
}
if [ "$1" = "edit" ]; then
case $2 in
"pairlist")${EDITOR:-vim} "$PAIRLIST" && exit;;
"blacklist")${EDITOR:-vim} "$BLACKLIST" && exit;;
*)true;;
esac
fi
#Sadly needs to be run without '&' for now, since it otherwise breaks start_scan variable
startup &
update_pair_list &