diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-10-07 12:27:33 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-10-07 12:27:33 +0200 |
commit | f2bb3d60068fae03df6a530afecb7a4c2e2ef3ab (patch) | |
tree | c851ad24987330c2f4564c1e71a9a1ef701a9f5d | |
parent | 528616b3df854b3bfad30c2364bf2aaf000e3a6d (diff) |
use temporary file and mv to replace feh binary in case it is currently running
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -58,7 +58,8 @@ install-doc: install-bin: @echo installing executables to ${bin_dir} @mkdir -p ${bin_dir} - @cp src/feh ${bin_dir} + @cp src/feh ${bin_dir}/feh.tmp + @mv ${bin_dir}/feh.tmp ${bin_dir}/feh @chmod 755 ${bin_dir}/feh install-font: |