I would like to use a device label instead of the device in a script that I am writing so I can use the script on multiple computers.
I want to change the line:
sudo dd if=$(TARGET) of=/dev/sdb
To
sudo dd if=$(TARGET) of=$(LABEL_NAME)
How do I do this? This script is part of a GNUMakefile.