10 lines
192 B
Bash

#!/bin/sh
if [ -z "$PULSE_COOKIE_DATA" ]
then
printf '%s' "$(echo $PULSE_COOKIE_DATA | sed -e 's/../\\x&/g')" >$HOME/pulse.cookie
export PULSE_COOKIE=$HOME/pulse.cookie
fi
exec "$@"