diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-21 14:43:49 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-21 14:44:26 -0700 |
| commit | ae4670bd8e0e45985e43402f246e4219cd29fcaa (patch) | |
| tree | 0c043c6b8aed0ebb7acf77b0817fe4ffd193cb38 /tools/upgrade.nom | |
| parent | 6728587dfc6a5f4090f2673113ffedb2be924daf (diff) | |
Improvements working towards better inline tests. Improved handling of
file spoofing and adding -e command line flag for executing a string.
Diffstat (limited to 'tools/upgrade.nom')
| -rwxr-xr-x | tools/upgrade.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/upgrade.nom b/tools/upgrade.nom index a505aaa..690d4fb 100755 --- a/tools/upgrade.nom +++ b/tools/upgrade.nom @@ -1,5 +1,4 @@ #!/usr/bin/env nomsu -V2.5.4.3 -#!/usr/bin/env Nomsu -V2.4.4.3 use "core" use "compatibility" use "lib/os.nom" @@ -18,6 +17,7 @@ if (%args.1 is "-t"): for %path in %args: if (%path is "-i"): %inplace = (yes) for file %filename in %path: + unless (%filename matches "%.nom$"): do next %filename %tree = (parse (read file %filename) from %filename) %uptree = (%tree upgraded) %text = ".." @@ -35,4 +35,4 @@ for %path in %args: ..else: say (bright "\%filename will be changed") - else: say %text
\ No newline at end of file + else: say %text |
