User Tools

Site Tools


osx_switch_java_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
osx_switch_java_script [2015/03/03 15:01] – external edit 127.0.0.1osx_switch_java_script [2015/03/05 09:26] (current) herwarth
Line 1: Line 1:
-switchjava.sh +======Switch Java version script for OSX====== 
- +<code - switchjava.sh>
-<code>+
 #!/bin/sh #!/bin/sh
  
Line 22: Line 21:
    fi    fi
    ;;    ;;
-7) if [ -d /Library/Internet\ Plug-Ins/disabled ]+7|8) if [ -d /Library/Internet\ Plug-Ins/disabled ]
    then    then
      sudo rm /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin      sudo rm /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
Line 35: Line 34:
      exit 0      exit 0
    else    else
-     echo "ERROR: disabled directory not present. Already running version 7."+     echo "ERROR: disabled directory not present. Already running version $1."
      exit 1      exit 1
    fi    fi
    ;;    ;;
-*) echo "usage $0 6|7"+*) echo "usage $0 6|7|8"
    exit 1 ;;    exit 1 ;;
 esac esac
 </code> </code>
 +
 +{{tag>other}}
osx_switch_java_script.1425394911.txt.gz · Last modified: (external edit)