[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-get source: bash wild card



Hi,

Unlike "apt-get install", I guess that "apt-get source"
does not check if the source is already loaded. Therefore,
I would like to add a bash script like:

for xx in "A PACKAGE NAME LIST"
do
	[ -f ${xx}*.tar.gz ]  || apt-get -m source $xx
done

Unfortunately, "${xx}*.tar.gz" somehow expands to "PACKAGE*.tar.gz" :(.
May I know either the proper way to use bash or other way
to overcome this problem?

thank you,

dullatip.




Reply to: