Unverified Commit 55dedfe5 authored by Mikhail Tergoev's avatar Mikhail Tergoev Committed by GitHub

Merge pull request #48 from Boria138/symlink-fix

added a check for the existence of a symbolic link
parents 078efd59 f6b5eee0
...@@ -53,7 +53,11 @@ if [ "${PW_SILENT_INSTALL}" = "1" ] ; then ...@@ -53,7 +53,11 @@ if [ "${PW_SILENT_INSTALL}" = "1" ] ; then
ln -s "${PW_OLD_PATH}/PortProton" "${XDG_DATA_HOME}/PortWINE" ln -s "${PW_OLD_PATH}/PortProton" "${XDG_DATA_HOME}/PortWINE"
fi fi
fi fi
if [ ! -L "${HOME}/PortWINE" ]; then
ln -s "${XDG_DATA_HOME}/PortWINE" "${HOME}/" ln -s "${XDG_DATA_HOME}/PortWINE" "${HOME}/"
else
echo "Symbolic link already exists."
fi
echo "Restarting PP after installing..." echo "Restarting PP after installing..."
/usr/bin/env bash -c "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" $@ & /usr/bin/env bash -c "${XDG_DATA_HOME}/PortWINE/PortProton/data/scripts/start.sh" $@ &
exit 0 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