scripts/download.pl: print the command used to download files
[openwrt/staging/wigyori.git] / scripts / feeds
index 3016eac92d087b0f6b30e56dfde152427b812832..55c294ad0a4ec2f0419d12deddeda7324c349e04 100755 (executable)
@@ -9,7 +9,8 @@ use strict;
 use Cwd 'abs_path';
 
 chdir "$FindBin::Bin/..";
-$ENV{TOPDIR}=getcwd();
+$ENV{TOPDIR} //= getcwd();
+chdir $ENV{TOPDIR};
 $ENV{GIT_CONFIG_PARAMETERS}="'core.autocrlf=false'";
 $ENV{GREP_OPTIONS}="";