base-files: functions.sh: Add prepend() homologue to append()
authorPhilip Prindeville <philipp@redfish-solutions.com>
Sun, 24 Sep 2023 17:52:19 +0000 (11:52 -0600)
committerPaul Spooren <mail@aparcar.org>
Mon, 23 Oct 2023 17:18:04 +0000 (19:18 +0200)
commit1998027d7cbb9d8f3986964bbdae070296bdce56
treeb15e53ccdd831f7fe46637acdc4a9b2cb3d399ae
parentb23c2ec8312545b3bf20d02872c86ed7ed9f8f13
base-files: functions.sh: Add prepend() homologue to append()

Sometimes it's useful to be able to prepend to a variable as
well, such as when dealing with domain names, e.g.

    prepend fdqn "$subdomain" "."

will result in:

   fqdn="$subdomain.$fqdn"

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
package/base-files/files/lib/functions.sh