diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-03 01:54:58 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-07-03 02:06:45 (EDT) |
commit | 66c3162f152c9befa0b2ee032300b526a3240d23 (patch) | |
tree | e2b9992926f5abbc40c4d38410d4a22363e1c666 /src/install.sh | |
parent | c03edb6df96f60dcc13c73cce67e86075ac91961 (diff) |
time(): Rename to unixtime()
In GNU Bash, time is not simply a built-in utility, but actually a
reserved word. Naming a function "time" results in a rather unhelpful
syntax error message.
Diffstat (limited to 'src/install.sh')
-rw-r--r-- | src/install.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/install.sh b/src/install.sh index 41c217f..ab2977b 100644 --- a/src/install.sh +++ b/src/install.sh @@ -294,7 +294,7 @@ install_get_pkgs() done <"${root}/$(profile_opkg_state_dir \ )/info/${pkg}.conffiles" fi - printf 'Installed-Time: %d\n\n' $(time) >&${status_fd} + printf 'Installed-Time: %d\n\n' $(unixtime) >&${status_fd} rm -f -- "${root}/${fname}" done |