Makefile: Abort installation if directory already exists
This commit is contained in:
parent
74b2b03d94
commit
52d1bfef64
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -80,7 +80,7 @@ tar.gz:
|
|||
find "$(BUILD_PATH)" -maxdepth 1 -mindepth 1 -type d -exec tar --exclude='.[^/]*' -C {} -czf {}.tar.gz . \;
|
||||
install:
|
||||
$(info Installing in "$(DESTDIR)"...)
|
||||
[ ! -d "$(DESTDIR)" ] || rm -rf --preserve-root $(DESTDIR)
|
||||
@[ ! -d "$(DESTDIR)" ] || (echo "ERROR: Install path '$(DESTDIR)' already exists!"; exit 1)
|
||||
mkdir --mode=$(INSTALL_MODE) -p $(DESTDIR)
|
||||
env TMPDIR="$(BUILD_PATH)" ./scripts/dist/install-tensorflow.sh $(DESTDIR)
|
||||
rm -rf --preserve-root $(DESTDIR)/include
|
||||
|
|
|
@ -102,7 +102,7 @@ func (c *Config) WallpaperUri() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
c.options.WallpaperUri = "default.jpg"
|
||||
c.options.WallpaperUri = "welcome.jpg"
|
||||
} else if !strings.Contains(c.options.WallpaperUri, ".") {
|
||||
c.options.WallpaperUri += fs.ExtJPEG
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue