Skip to content

Commit 2db8811

Browse files
author
Daniel Bolton
committed
modified "word" chars
1 parent d73dfbe commit 2db8811

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

apin.pl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
use strict;
33
use warnings;
44

5-
# github.com/dbbolton
6-
#
7-
# I use this script to install packages through aptitude as a normal user.
8-
95
my $args = '-P ';
106
my $packages = '';
117
my $pattern = '';
@@ -18,7 +14,7 @@
1814
elsif ( /^[~?]/ ) {
1915
$pattern .= $_;
2016
}
21-
elsif ( /^\w+$/ ) {
17+
elsif ( /^[\w-.]+$/ ) {
2218
$packages .= $_ . ' ';
2319
}
2420

0 commit comments

Comments
 (0)