diff options
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-x | tools/rockboxdev.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index b5a13cb9df..b6419cf54d 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh | |||
@@ -86,6 +86,23 @@ case $arch in | |||
86 | ;; | 86 | ;; |
87 | esac | 87 | esac |
88 | 88 | ||
89 | # Verify download directory or create it | ||
90 | if test -d "$dlwhere"; then | ||
91 | if test -w "$dlwhere"; then | ||
92 | echo "Download directory $dlwhere seems to exist and is writable" | ||
93 | else | ||
94 | echo "$dlwhere exists, but doesn't seem to be writable for you" | ||
95 | exit | ||
96 | fi | ||
97 | else | ||
98 | mkdir $dlwhere | ||
99 | if test $? -ne 0; then | ||
100 | echo "$dlwhere is missing and we failed to create it!" | ||
101 | exit | ||
102 | fi | ||
103 | echo "$dlwhere has been created to store downloads in" | ||
104 | fi | ||
105 | |||
89 | if test -d build-rbdev; then | 106 | if test -d build-rbdev; then |
90 | echo "you have a build-rbdev dir already, please remove and rerun" | 107 | echo "you have a build-rbdev dir already, please remove and rerun" |
91 | exit | 108 | exit |