sh: : No such file or directory

This message keeps popping up - in multiple windows-- sh: : No such file or directory

when I clicked on edit it says

(* An AppleScript application to run the Google Earth installer package.

This is an app instead of a simple AppleScript (or shell script for that matter)

because we need to use the built-in system authentication dialog to elevate to

root safely.
If this were a simple script, the application name reported in the

dialog would be wrong (probably "osascript"), so it must be a full-fledged app. *)


(* Sets the exit status for this script to |status|.
This can be called more than once,

and only the last call before the script exits will count. *)

on write_status(status)


-- Write the status to the file whose path is in the "status_file" environment variable.


do shell script "/bin/echo " & quoted form of (status as text) & " > " & quoted form of (system attribute "status_file")

end write_status


try


-- Default to assuming something went wrong in case we throw an exception.


write_status(128)



-- Elevate to root using the system authentication dialog, then run the installer.


-- We expect the base path to the disk image to be in the environment variable


-- called "dmg_path".


do shell script "/usr/sbin/installer -pkg '" & (system attribute "dmg_path") & "/Install Google Earth.pkg' -target /" with administrator privileges



-- No exception, so this apparently succeeded.


write_status(0)

on error errmsgnumbererrNum


-- Installer exited non-zero.
Write that status code and log the error message.


do shell script "syslog -s -l error " & quoted form of errmsg


write_status(errNum)

end try

How do I put an end to this to stop it from popping up???

Thank you,


MacBook Pro with Retina display, macOS Sierra (10.12.6)

Posted on Sep 13, 2017 3:44 PM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

sh: : No such file or directory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.