|
@@ -23,7 +23,7 @@
|
23
|
23
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
24
|
24
|
# SOFTWARE.
|
25
|
25
|
|
26
|
|
-LAUNCHERVERSION="4"
|
|
26
|
+LAUNCHERVERSION="5"
|
27
|
27
|
|
28
|
28
|
params=""
|
29
|
29
|
|
|
@@ -182,7 +182,7 @@ elif [ -e "${profiledir}/.launcher.sh" ]; then
|
182
|
182
|
sudo mv -fv "${profiledir}/.launcher.sh" "${0}"
|
183
|
183
|
fi;
|
184
|
184
|
fi
|
185
|
|
- if [ ! -e "${profiledir}/.DMDirc.jar" ]; then
|
|
185
|
+ if [ ! -e "${profiledir}/.launcher.sh" ]; then
|
186
|
186
|
echo "Update successful."
|
187
|
187
|
messagedialog "Launcher Update" "Launcher Update successful"
|
188
|
188
|
else
|
|
@@ -219,10 +219,10 @@ if [ -e "${profiledir}/.DMDirc.jar" ]; then
|
219
|
219
|
if [ "0" != "${UID}" ]; then
|
220
|
220
|
if [ "" != "${ISKDE}" -a "" != "${KSUDO}" -a "" != "${DISPLAY}" ]; then
|
221
|
221
|
echo "Password dialog on ${DISPLAY}"
|
222
|
|
- ${KSUDO} --comment "DMDirc Client Updater requires root access to modify the global installation" mv -fv "${profiledir}/.DMDirc.jar" "${jar}"
|
|
222
|
+ ${KSUDO} --comment "DMDirc Client Updater requires root access to modify the global installation" -- mv -fv "${profiledir}/.DMDirc.jar" "${jar}"
|
223
|
223
|
elif [ "" != "${ISGNOME}" -a "" != "${GSUDO}" -a "" != "${DISPLAY}" ]; then
|
224
|
224
|
echo "Password dialog on ${DISPLAY}"
|
225
|
|
- ${GSUDO} -k --message "DMDirc Client Updater requires root access to modify the global installation" mv -fv "${profiledir}/.DMDirc.jar" "${jar}"
|
|
225
|
+ ${GSUDO} -k --message "DMDirc Client Updater requires root access to modify the global installation" -- mv -fv "${profiledir}/.DMDirc.jar" "${jar}"
|
226
|
226
|
else
|
227
|
227
|
echo "DMDirc Client Updater requires root access to modify the global installation"
|
228
|
228
|
sudo mv -fv "${profiledir}/.DMDirc.jar" "${jar}"
|