Fix hardcoded babashka path
authorJoseph Nuthalapati <njoseph@riseup.net>
Fri, 12 Feb 2021 08:25:35 +0000 (13:55 +0530)
committerJoseph Nuthalapati <njoseph@riseup.net>
Fri, 12 Feb 2021 08:25:35 +0000 (13:55 +0530)
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
lib.clj
update-babashka.clj

diff --git a/lib.clj b/lib.clj
index 86dc702b3bcc15a94c2f99a5f9355a8914f2cd94..e4616afe687eb257edbe3112b5fc749eb9f69562 100644 (file)
--- a/lib.clj
+++ b/lib.clj
@@ -1,4 +1,4 @@
-;
+; Common utility functions used by scripts
 
 (import '[java.nio.file Files FileSystems CopyOption StandardCopyOption])
 
index 56ece2d17f3f567c8f317982910f1016cedd318b..41aa569410b8d9e5cc240c41f08d62908cea7ea8 100755 (executable)
@@ -44,5 +44,5 @@
      (check-latest version)
      (download-latest version architecture zip-file)
      (extract-file-from-zip zip-file "bb" destination)
-     (fs/set-posix-file-permissions "/home/joseph/bin/bb" "rwxr-xr-x")
+     (fs/set-posix-file-permissions destination "rwxr-xr-x")
      (io/delete-file zip-file)))