Changeset 3259


Ignore:
Timestamp:
Mar 12, 2014, 9:30:03 PM (6 years ago)
Author:
bruno
Message:
  • Don't use the perl -i option when dealing with stdin
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3258 r3259  
    913913    while [ `echo $file | grep -Ec '\.\./'` -ne 0 ]; do
    914914        # We need to normalise the path with .. in it
    915         file=`echo $file | perl -pi -e 's|([^/]*)/([^/]+)/\.\./([^/]+)|$1/$3|g'`
     915        file=`echo $file | perl -p -e 's|([^/]*)/([^/]+)/\.\./([^/]+)|$1/$3|g'`
    916916    done
    917917    echo "$file"
Note: See TracChangeset for help on using the changeset viewer.