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

Both sides previous revisionPrevious revision
Next revision
Previous revision
osx_switch_java_script [2015/03/04 08:43] herwarthosx_switch_java_script [2015/03/05 09:26] (current) herwarth
Line 1: Line 1:
-{{tag>osx}} +======Switch Java version script for OSX====== 
-====Switch Java version script for OSX==== +<code - switchjava.sh>
-switchjava.sh +
- +
-<code>+
 #!/bin/sh #!/bin/sh
  
Line 24: 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 37: 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.1425458601.txt.gz · Last modified: by herwarth