Justfile/rebuild-this-device: rename device -> devicename
This commit is contained in:
parent
7dda7653b8
commit
ffc9bb9fec
1 changed files with 6 additions and 6 deletions
12
Justfile
12
Justfile
|
@ -84,12 +84,12 @@ rebuild-this-device rebuildarg="dry-activate":
|
|||
fi
|
||||
|
||||
# Re-render the versions of a remote device and rebuild its environment
|
||||
update-remote-device device target rebuildmode='switch':
|
||||
update-remote-device devicename target rebuildmode='switch':
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
template=nix/os/devices/{{device}}/versions.tmpl.nix
|
||||
outfile=nix/os/devices/{{device}}/versions.nix
|
||||
template=nix/os/devices/{{ devicename }}/versions.tmpl.nix
|
||||
outfile=nix/os/devices/{{ devicename }}/versions.nix
|
||||
|
||||
if ! test -e ${template}; then
|
||||
template="$(just _DEFAULT_VERSION_TMPL)"
|
||||
|
@ -101,17 +101,17 @@ update-remote-device device target rebuildmode='switch':
|
|||
exit 0
|
||||
fi
|
||||
|
||||
just -v rebuild-remote-device {{device}} {{target}} dry-activate || {
|
||||
just -v rebuild-remote-device {{ devicename }} {{target}} dry-activate || {
|
||||
echo ERROR: rebuild in mode 'dry-active' failed after updating ${outfile}
|
||||
exit 1
|
||||
}
|
||||
|
||||
just -v rebuild-remote-device {{ device }} {{ target }} {{ rebuildmode }} || {
|
||||
just -v rebuild-remote-device {{ devicename }} {{ target }} {{ rebuildmode }} || {
|
||||
echo ERROR: rebuild in mode '{{ rebuildmode }}' failed after updating ${outfile}
|
||||
exit 1
|
||||
}
|
||||
|
||||
git commit -v ${outfile} -m "nix/os/devices/{{ device }}: bump versions"
|
||||
git commit -v ${outfile} -m "nix/os/devices/{{ devicename }}: bump versions"
|
||||
|
||||
# Re-render the versions of the current device and rebuild its environment
|
||||
update-this-device rebuild-mode='switch':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue