Jump to content
Server Maintenance This Week. ×

Move to 10.8.2 : shell script stopped running


This topic is 4176 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I was running 10.6.8, but after a server replacement I now have MacOS X 10.8.2 running. Everything seems to work. However a migrated shell script does not.

 

The orginal script was :

 

#! /bin/bash
 
cd /Volumes/Macintosh HD2/Netwerk
rm -R BackupAVG
ls -t | head -1 | xargs -I % mv % BackupAVG
 
I needed to rename the second hd to MacHD2 ( I did this in the Finder ), so the script is now :
#! /bin/bash
 
cd /Volumes/MacHD2/Netwerk
rm -R BackupAVG
ls -t | head -1 | xargs -I % mv % BackupAVG
 
It won't run....
'Aborted unexpectedly'
Running the commands in terminal work as expected.
 
Anything to check ?
Link to comment
Share on other sites

This topic is 4176 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.