diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-10-02 06:52:08 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-10-02 06:52:08 +0000 |
commit | 31a3c4bbbfc606d5c57cdeaf8ac1ba96cbb824d2 (patch) | |
tree | 3ae333a347af5916afe827f78bb5d75873e58e4d /Keywords | |
parent | 3d662ff0370f18b3437b2c37d37fe9099c225425 (diff) | |
download | ports-31a3c4bbbfc606d5c57cdeaf8ac1ba96cbb824d2.tar.gz ports-31a3c4bbbfc606d5c57cdeaf8ac1ba96cbb824d2.zip |
Fix @sample with 2 arguments
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D26639
Notes
Notes:
svn path=/head/; revision=550901
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/sample.ucl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Keywords/sample.ucl b/Keywords/sample.ucl index 4f9b388e3d87..818e833a2b5d 100644 --- a/Keywords/sample.ucl +++ b/Keywords/sample.ucl @@ -23,7 +23,7 @@ arguments: true post-install-lua: <<EOS sample_file = pkg.prefixed_path("%1") if "%#" == 2 then - target_file = pkg.prefixed_path("%1") + target_file = pkg.prefixed_path("%2") else target_file = string.gsub(sample_file,'%.sample$', "") end @@ -35,7 +35,7 @@ EOS pre-deinstall-lua: <<EOS sample_file = pkg.prefixed_path("%1") if "%#" == 2 then - target_file = pkg.prefixed_path("%1") + target_file = pkg.prefixed_path("%2") else target_file = string.gsub(sample_file,'%.sample$', "") end |