X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fsavescreen.sh;h=e77bffef5d2c42c35a20ec6a055f7b5d76b358cb;hb=87154b424ea0f67c2965d00e861ddfb134082d94;hp=56570e7e3cc4137b503a54bfc3f2975ee2d42ce6;hpb=bca50d0d8592defee6c584fdedd25f4b1a31345b;p=ncurses.git diff --git a/test/savescreen.sh b/test/savescreen.sh old mode 100755 new mode 100644 index 56570e7e..e77bffef --- a/test/savescreen.sh +++ b/test/savescreen.sh @@ -1,6 +1,7 @@ #!/bin/sh ############################################################################## -# Copyright (c) 2007-2009,2018 Free Software Foundation, Inc. # +# Copyright 2020,2022 Thomas E. Dickey # +# Copyright 2007-2009,2018 Free Software Foundation, Inc. # # # # Permission is hereby granted, free of charge, to any person obtaining a # # copy of this software and associated documentation files (the "Software"), # @@ -26,7 +27,7 @@ # use or other dealings in this Software without prior written # # authorization. # ############################################################################## -# $Id: savescreen.sh,v 1.5 2018/01/06 00:04:14 tom Exp $ +# $Id: savescreen.sh,v 1.7 2022/02/05 17:58:06 tom Exp $ # # Use this script to exercise "savescreen". # It starts by generating a series of temporary-filenames, which are passed @@ -36,7 +37,8 @@ # "mktemp -d" would be preferable, but is not standard. MY_DIR=$TMPDIR/savescreen$$ -trap "rm -rf $MY_DIR" EXIT INT QUIT HUP +trap "rm -rf $MY_DIR; exit 1" 1 2 3 +trap "rm -rf $MY_DIR" 0 umask 077 mkdir $MY_DIR || exit 1