Changeset 3259 in MondoRescue


Ignore:
Timestamp:
Mar 12, 2014, 9:30:03 PM (10 years ago)
Author:
Bruno Cornec
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.