diff options
author | EuAndreh <eu@euandre.org> | 2022-05-12 12:01:54 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-05-12 12:01:54 -0300 |
commit | 90eaebabcaaea74237f34cf05709625345f276cc (patch) | |
tree | 349e7609d20ecfb6567652a7e28595cec9647eb0 /bin/mkstemp | |
parent | .usr/etc/i3/config: WIP setup extra bindings (diff) | |
download | dotfiles-90eaebabcaaea74237f34cf05709625345f276cc.tar.gz dotfiles-90eaebabcaaea74237f34cf05709625345f276cc.tar.xz |
Move Git repository into ~/.usr/.git/
Diffstat (limited to 'bin/mkstemp')
-rwxr-xr-x | bin/mkstemp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bin/mkstemp b/bin/mkstemp new file mode 100755 index 0000000..ec92c14 --- /dev/null +++ b/bin/mkstemp @@ -0,0 +1,24 @@ +#!/bin/sh +set -eu + +usage() { + cat <<-'EOF' + Usage: + mkstemp + mkstemp -h + EOF +} + +help() { + cat <<-'EOF' + + Options: + -h, --help show this message + + Create a new temporary file and echo its name back. + EOF +} + +name="$(tmpname)" +touch "$name" +echo "$name" |