Commit 17905e8d authored by David Burke's avatar David Burke

Add another unsafe eval remover for jspdf

parent cb70d8bd
Pipeline #37771203 failed with stages
in 5 minutes and 53 seconds
#!/bin/sh
find dist -type f -name "*.js" | xargs sed -i 's/new Function(/(/g'
find dist -type f -name "*.js" | xargs sed -i 's/||Function(/\||(/g'
XVFB=/usr/bin/Xvfb
XVFBARGS=":99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset"
PIDFILE=/var/run/xvfb.pid
case "$1" in
start)
echo -n "Starting virtual X frame buffer: Xvfb"
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS
echo "."
;;
stop)
echo -n "Stopping virtual X frame buffer: Xvfb"
start-stop-daemon --stop --quiet --pidfile $PIDFILE
echo "."
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/xvfb {start|stop|restart}"
exit 1
esac
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment