Changeset 191


Ignore:
Timestamp:
Jan 21, 2018, 2:39:09 PM (7 years ago)
Author:
g7moreau
Message:
  • Protect file and folder with simple quote
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/project-meta/project-meta

    r190 r191  
    138138      }
    139139
    140    print "chmod o+rX,o-w $current_dir\n";
    141    print "mkdir -p $dap_folder/$acronym\n" if not -d "$dap_folder/$acronym";
     140   print "chmod o+rX,o-w '$current_dir'\n";
     141   print "mkdir -p '$dap_folder/$acronym'\n" if not -d "$dap_folder/$acronym";
    142142   for my $folder (sort keys %folders) {
    143       print "chmod o+rX,o-w $current_dir/$folder\n";
    144       print "mkdir -p $dap_folder/$acronym/$folder\n" if -d "$current_dir/$folder";
     143      print "chmod o+rX,o-w '$current_dir/$folder'\n";
     144      print "mkdir -p '$dap_folder/$acronym/$folder'\n" if -d "$current_dir/$folder";
    145145      }
    146146
     
    149149         # Folder case
    150150         my $folder = $dataset =~ s{/[^/]+$}{}r;
    151          print "ln --symbolic --target-directory $dap_folder/$acronym/$folder/ $current_dir/$dataset\n";
     151         print "ln --symbolic --target-directory '$dap_folder/$acronym/$folder/' '$current_dir/$dataset'\n";
    152152         }
    153153      else {
    154154         # File case
    155          print "ln --symbolic --target-directory $dap_folder/$acronym/ $current_dir/$dataset\n";
    156          }
    157 
    158       }
    159    print "chmod -R o+rX,o-w $dap_folder/$acronym/\n";
     155         print "ln --symbolic --target-directory '$dap_folder/$acronym/' '$current_dir/$dataset'\n";
     156         }
     157
     158      }
     159   print "chmod -R o+rX,o-w '$dap_folder/$acronym/'\n";
    160160   }
    161161
Note: See TracChangeset for help on using the changeset viewer.