Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pwnstar
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ tail_txtfile_fn()
ls /var/www/$wwwdir
echo -e "$q\nEnter name of txtfile \n(usually formdata.txt)"
read txtfile
var="$(ls /var/www/$wwwdir|grep "$txtfile")" # tests whether $txtfile is valid
var="$(ls /var/www/$wwwdir|grep "^$txtfile$")" # tests whether $txtfile is valid
if [[ $var == "$txtfile" ]];then
Eterm -g 80x4-0+493 --pointer-color "dark orange" -f DarkOrchid4 -b LightYellow1 -r --font-fx none --buttonbar 0 --scrollbar 0 -q -T "Textfile Tail" -e tail -f /var/www/"$wwwdir"/"$txtfile" 2> /dev/null &
else
Expand Down