Thread: Intro & Shell Script Question
08-31-2012, 02:48 AM #1
Intro & Shell Script Question
- Member Since
- Aug 31, 2012
I am new 2 macs and have recently started working on some scripts
if [-f /Applications/MyApp.app/Content/Database/File]; then
Gives me all kinds of errors
Basically I am looking for a file if found exit and return 64
The script is part of an Iceberg installation.
08-31-2012, 12:14 PM #2
You need an else, you're making a conditional here.
if [-f /Applications/MyApp.app/Content/Database/File]; then exit 64 else echo 0 fimike
This machine kills fascists
Got # ? phear the command line!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By Seventh in forum OS X - Operating SystemReplies: 1Last Post: 03-27-2012, 09:25 PM
By Hyper in forum OS X - Development and DarwinReplies: 12Last Post: 05-22-2011, 12:36 PM
By Straitsfan in forum OS X - Apps and GamesReplies: 0Last Post: 01-30-2011, 10:04 PM
By The_Grudge in forum Switcher HangoutReplies: 6Last Post: 09-21-2007, 04:00 AM
By Niwrad in forum OS X - Development and DarwinReplies: 14Last Post: 06-28-2005, 05:58 PM