Testing out GeSHi
Submitted by tlarkin on Tue, 03/16/2010 - 19:43
So, I wanted to make my code look more pretty on my site and I found this module called GeSHi. So basically I just want to test it out. So, here is my first copy/paste of one of my shell scripts to see how it really looks on my site.
#!/bin/bash ################################################################## # check local admin script for dummy package # if a local admin account exists in /Users, then dummy package will be installed # Use policy logs to generate a report of macihnes that have AUP violations on them # where a local admin account has been enabled by the student hacking around built in # securities # by Thomas Larkin # for KCKPS # # created on 01/11/10 ################################################################# # set check admin variable # make sure no FEU folders got in there from a composer pkg checkExistingAdmin="/Users/hadmin" if [[ -e $checkExistingAdmin ]] then /bin/rm -rf $checkExistingAdmin else /bin/echo "$checkExistingAdmin is not present" fi # now loop through /Users and check the admin status for i in `/bin/ls /Users | /usr/bin/grep -v "Shared"` ; do if [[ `/usr/bin/dscl . read /Groups/admin GroupMembership | /usr/bin/grep $i -c` == 1 ]] then /usr/sbin/jamf policy -trigger hasadmin else /bin/echo "No admin accounts found in /Users" fi done exit 0
So, does that look a lot more prettier than before?
- tlarkin's blog
- Login to post comments
