=================================================================== RCS file: /cvs/openbsd/fw_update/fw_install.sh,v retrieving revision 1.54 retrieving revision 1.55 diff -u -r1.54 -r1.55 --- openbsd/fw_update/fw_install.sh 2021/12/07 04:29:18 1.54 +++ openbsd/fw_update/fw_install.sh 2021/12/08 03:37:44 1.55 @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: fw_install.sh,v 1.54 2021/12/07 04:29:18 afresh1 Exp $ +# $OpenBSD: fw_install.sh,v 1.55 2021/12/08 03:37:44 afresh1 Exp $ # # Copyright (c) 2021 Andrew Hewus Fresh # @@ -46,6 +46,16 @@ fi echo "$_dir" +} + +realpath () { + if [ -x /usr/bin/realpath ]; then + /usr/bin/realpath "$1" + elif [ "$1" = "${1%/*}" ]; then + echo "${PWD}/$1" + else + echo "$( cd "${1%/*}" && pwd )/${1##*/}" + fi } fetch() {