diff options
author | Srikant Patnaik | 2015-02-21 04:43:11 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-02-21 04:43:11 +0530 |
commit | 26162d64a9348890767787852561f19d904d1950 (patch) | |
tree | 82a2cd6b281b4fb765f4040266e1e2d203324076 | |
parent | bf2a377e9c0a28ef06b4a29eb8612f12ba54161b (diff) | |
download | FOSSEE-netbook-patcher-26162d64a9348890767787852561f19d904d1950.tar.gz FOSSEE-netbook-patcher-26162d64a9348890767787852561f19d904d1950.tar.bz2 FOSSEE-netbook-patcher-26162d64a9348890767787852561f19d904d1950.zip |
added files paths to present directory
-rwxr-xr-x | patcher.sh | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -26,15 +26,16 @@ source easybashgui # For local debugging logfile=patcher.log - +DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +echo $DIR # Intermediate files/directories. Will be removed after each interation testfile=robots.txt -files_in_all_commits=files_in_all_commits.txt -all_commits_one_liner_with_date=all_commits_one_liner_with_date.txt -all_commits_dates_with_file_paths=all_commits_dates_with_file_paths.txt -past_applied_commits=past_applied_commits.txt -local_updates=local_updates -unique_tags=unique_tags +files_in_all_commits=$DIR/files_in_all_commits.txt +all_commits_one_liner_with_date=$DIR/all_commits_one_liner_with_date.txt +all_commits_dates_with_file_paths=$DIR/all_commits_dates_with_file_paths.txt +past_applied_commits=$DIR/past_applied_commits.txt +local_updates=$DIR/local_updates +unique_tags=$DIR/unique_tags [ ! -d $unique_tags ] && mkdir -p $unique_tags # Default is no internet INET_AVAILABLE=0 @@ -71,7 +72,7 @@ function check_internet() { #wait_for internet for each in {fossee.in,github.com}; do - wget $each/$testfile &> /dev/null + wget -P $DIR $each/$testfile &> /dev/null return_code=$? [ $return_code -eq 0 ] && INET_AVAILABLE=1 && break [ $return_code -eq 1 ] && alert_message -w 300 -h 100 $return_code_1 && break |