mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 15:24:11 +01:00
Only normalize() files that exist in File#joinPaths.
--HG-- extra : rebase_source : 95956866421e607ed9232d905e2ceb462400e09e
This commit is contained in:
@@ -82,7 +82,6 @@ release: $(XPI) $(RDF)
|
||||
dist: $(XPI)
|
||||
@echo DIST $(XPI) $(GOOGLE)
|
||||
set -e; \
|
||||
which $$(echo $(B64ENCODE) | $(AWK) '{print $1}') >/dev/null; \
|
||||
\
|
||||
proj=$$(echo -n $(NAME) | sed 's/\(.\).*/\1/' | tr a-z A-Z); \
|
||||
proj="$$proj$$(echo $(NAME) | sed 's/.//')"; \
|
||||
@@ -93,9 +92,10 @@ dist: $(XPI)
|
||||
IFS=,; for l in $$labels; do \
|
||||
set -- "$$@" --form-string "label=$$l"; \
|
||||
done; \
|
||||
auth=$$(echo -n "$(GOOGLE_USER):$(GOOGLE_PASS)" | $(B64ENCODE)); \
|
||||
$(CURL) "$$@" --form-string "summary=$$summary" \
|
||||
-F "filename=@$(XPI)" \
|
||||
-H "Authorization: Basic $$(echo -n "$(GOOGLE_USER):$(GOOGLE_PASS)" | $(B64ENCODE))" \
|
||||
-H "Authorization: Basic $$auth" \
|
||||
-i "$(GOOGLE)" | sed -n '/^Location/{p;q;}'
|
||||
|
||||
$(RDF): $(RDF_IN) Makefile
|
||||
|
||||
@@ -547,7 +547,8 @@ const File = Class("File", {
|
||||
try {
|
||||
// FIXME: should only expand env vars and normalise path separators
|
||||
path.appendRelativePath(this.expandPath(tail, true));
|
||||
path.normalize();
|
||||
if (path.exists())
|
||||
path.normalize();
|
||||
}
|
||||
catch (e) {
|
||||
return { exists: function () false, __noSuchMethod__: function () { throw e; } };
|
||||
|
||||
Reference in New Issue
Block a user