diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-01-07 00:24:55 +0100 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2020-01-09 16:36:06 +0100 |
| commit | 6371f0ae01169ca3f93f51f2b8399aaa9b873eb3 (patch) | |
| tree | 106d2d383cd59d778a1e36ac481a41b75238da89 | |
| parent | 7e9df53f274d9c729b601f0f47c164aa56cce009 (diff) | |
Fix `trap` command interpolation
| -rwxr-xr-x | rc/commands/edit | 2 | ||||
| -rwxr-xr-x | rc/commands/get | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rc/commands/edit b/rc/commands/edit index aac1fb3..60f0742 100755 --- a/rc/commands/edit +++ b/rc/commands/edit @@ -1,7 +1,7 @@ #!/bin/sh TMP=$(mktemp -d) -trap "rm -Rf $TMP" EXIT +trap 'rm -Rf "$TMP"' EXIT # realpath for macOS realpath() { diff --git a/rc/commands/get b/rc/commands/get index fbae546..56fc17a 100755 --- a/rc/commands/get +++ b/rc/commands/get @@ -3,7 +3,7 @@ type=$1 name=$2 expansion="%$type($name)" TMP=$(mktemp -d) -trap "rm -R $TMP" EXIT +trap 'rm -R "$TMP"' EXIT fifo=$TMP/fifo mkfifo "$fifo" |
