X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/822443a35ae092fdacd70843eba89ffa5145855a..56d7382fa8b4c6f2110643e5384eb912a748d89d:/scripts/feeds?ds=sidebyside diff --git a/scripts/feeds b/scripts/feeds index 6b09f7ee4..8e1885552 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -23,7 +23,9 @@ sub parse_config() { my $line = 0; my %name; - open FEEDS, "feeds.conf"; + open FEEDS, "feeds.conf" or + open FEEDS, "feeds.conf.default" or + die "Unable to open feeds configuration"; while () { chomp; s/#.+$//; @@ -100,7 +102,7 @@ sub update_git($$) { system("GIT_DIR=./feeds/$name/.git git pull") == 0 or return 1; } else { system("rm -rf \"./feeds/$name\""); - system("git-clone --depth 1 $src ./feeds/$name") == 0 or return 1; + system("git clone --depth 1 $src ./feeds/$name") == 0 or return 1; } return 0;