summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2024-05-06 20:57:25 +0000
committerTyler Davis <tyler@gluecode.net>2024-05-06 20:57:25 +0000
commitb3bdfde49ec8d0395a615e44565b1a8471e430e7 (patch)
tree738923cc199237982610443346287596bfc92273
parent992657990dc150bbf81963752433acdc81f917e6 (diff)
downloaddotfiles-b3bdfde49ec8d0395a615e44565b1a8471e430e7.tar.gz
dotfiles-b3bdfde49ec8d0395a615e44565b1a8471e430e7.zip
bin: fix gitrect to use posix tools
-rwxr-xr-x.local/bin/gitrect-clean4
-rwxr-xr-x.local/bin/gitrect-update2
2 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/gitrect-clean b/.local/bin/gitrect-clean
index 555094e..a29aba8 100755
--- a/.local/bin/gitrect-clean
+++ b/.local/bin/gitrect-clean
@@ -5,9 +5,9 @@
# For all directories found in $WORKDIR
# Operate on tempfile
-TEMPFILE="/tmp/gitrect.temp.$(xxd -l6 -p /dev/urandom)"
+TEMPFILE="/tmp/gitrect.temp.$(od -t x1 -An -N6 /dev/urandom |tr -d '\n ')"
touch $TEMPFILE
-PREFIX="/tmp/gitrect.prefix.$(xxd -l6 -p /dev/urandom)"
+PREFIX="/tmp/gitrect.prefix.$(od -t x1 -An -N6 /dev/urandom |tr -d '\n ')"
touch $PREFIX
# Reset all variables that might be set
diff --git a/.local/bin/gitrect-update b/.local/bin/gitrect-update
index 0ec9415..667172f 100755
--- a/.local/bin/gitrect-update
+++ b/.local/bin/gitrect-update
@@ -9,7 +9,7 @@
# For all directories found in $WORKDIR
# Operate on tempfile
-TEMPFILE="/tmp/gitrect.temp.$(xxd -l6 -p /dev/urandom)"
+TEMPFILE="/tmp/gitrect.temp.$(od -t x1 -An -N6 /dev/urandom |tr -d '\n ')"
touch $TEMPFILE
# Reset all variables that might be set