summary refs log tree commit diff stats
path: root/update-tabnine.sh
diff options
context:
space:
mode:
authorAlan Pearce2020-10-06 16:28:35 +0200
committerAlan Pearce2020-10-06 16:32:15 +0200
commit21e2678dd3927052f74cb5fc53678db5fbb89a9d (patch)
treef23f28918b049db6e1d70923e731b0d94292bb94 /update-tabnine.sh
parent42481db98949754071e71756dd4ce3413853914a (diff)
downloadnixfiles-21e2678dd3927052f74cb5fc53678db5fbb89a9d.tar.lz
nixfiles-21e2678dd3927052f74cb5fc53678db5fbb89a9d.tar.zst
nixfiles-21e2678dd3927052f74cb5fc53678db5fbb89a9d.zip
update-tabnine: fail more informatively
Diffstat (limited to 'update-tabnine.sh')
-rwxr-xr-xupdate-tabnine.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/update-tabnine.sh b/update-tabnine.sh
index 19fe45df..bd6a0721 100755
--- a/update-tabnine.sh
+++ b/update-tabnine.sh
@@ -1,7 +1,9 @@
 #!/bin/sh
 
+set -euo pipefail
+
 function prefetch_target () {
-  nix-prefetch-url --type sha256 https://update.tabnine.com/$2/$1/TabNine 2> /dev/null
+  nix-prefetch-url --type sha256 https://update.tabnine.com/$2/$1/TabNine
 }
 
 if [ -z "$1" ]; then