about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/yt/update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/yt/update.sh')
-rwxr-xr-xsys/nixpkgs/pkgs/yt/update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nixpkgs/pkgs/yt/update.sh b/sys/nixpkgs/pkgs/yt/update.sh
index 2529167c..2e59aa60 100755
--- a/sys/nixpkgs/pkgs/yt/update.sh
+++ b/sys/nixpkgs/pkgs/yt/update.sh
@@ -1,6 +1,7 @@
 #!/usr/bin/env sh
 
-cargo update && cargo upgrade
+cargo update
+[ "$1" = "upgrade" ] && cargo upgrade
 
 
 # vim: ft=sh