Pārlūkot izejas kodu

Launcher update now checks for .launcher.sh not .DMDirc.jar (Fixes issue 1554)

Added missing -- for sudo elevation when updating client (Fixes issue 1555)


git-svn-id: http://svn.dmdirc.com/trunk@4436 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Shane Mc Cormack 16 gadus atpakaļ
vecāks
revīzija
4ac9166868
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4
    4
      launcher/linux/DMDirc.sh

+ 4
- 4
launcher/linux/DMDirc.sh Parādīt failu

@@ -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}"

Notiek ielāde…
Atcelt
Saglabāt