-(= *file* (System/getProperty "babashka.file")
- (let [architecture "linux-static-amd64" ;; TODO support multiple architectures
- zip-file "babashka.zip"
- destination (expand-home "~/bin/bb")
- version (babashka-latest-version)]
- (check-latest version)
- (download-latest version architecture zip-file)
- (extract-file-from-zip zip-file "bb" destination)
- (fs/set-posix-file-permissions destination "rwxr-xr-x")
- (io/delete-file zip-file)))
+(when (= *file* (System/getProperty "babashka.file"))
+ (let [architecture "linux-static-amd64" ;; TODO support multiple architectures
+ zip-file "babashka.zip"
+ destination (expand-home "~/bin/bb")
+ version (babashka-latest-version)]
+ (check-latest version)
+ (download-latest version architecture zip-file)
+ (extract-file-from-zip zip-file "bb" destination)
+ (fs/set-posix-file-permissions destination "rwxr-xr-x")
+ (io/delete-file zip-file)))