update.sh: fix uninit variable usage

This commit is contained in:
Harsh Shandilya 2021-07-24 02:10:21 +05:30
parent 5161a531df
commit 94d62fa626
No known key found for this signature in database
GPG Key ID: 366D7BBAD1031E80
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ declare -a ITEMS=(
rust-script
)
if [ -z "${1}" ]; then
PKG="${1:-}"
if [ -z "${PKG}" ]; then
for item in "${ITEMS[@]}"; do
nix-update --commit --build "${item}"
done