summaryrefslogtreecommitdiffstats
path: root/.local/bin/tmp_os.sh
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-02-07 10:10:00 +0100
committerJoe <rrbo@proton.me>2023-02-07 10:10:00 +0100
commitdae6ed88b8830c5166a9b525e2b6963e30a97a9f (patch)
treed4ffb130e084d01383d9b697c179ba1471e031e4 /.local/bin/tmp_os.sh
parentup (diff)
downloaddotfiles-bsd-dae6ed88b8830c5166a9b525e2b6963e30a97a9f.tar.gz
dotfiles-bsd-dae6ed88b8830c5166a9b525e2b6963e30a97a9f.tar.bz2
dotfiles-bsd-dae6ed88b8830c5166a9b525e2b6963e30a97a9f.tar.xz
dotfiles-bsd-dae6ed88b8830c5166a9b525e2b6963e30a97a9f.tar.zst
dotfiles-bsd-dae6ed88b8830c5166a9b525e2b6963e30a97a9f.zip
up
Diffstat (limited to '.local/bin/tmp_os.sh')
-rwxr-xr-x.local/bin/tmp_os.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/tmp_os.sh b/.local/bin/tmp_os.sh
index e0fa13f..ad0be7f 100755
--- a/.local/bin/tmp_os.sh
+++ b/.local/bin/tmp_os.sh
@@ -1,5 +1,6 @@
#!/bin/sh
+tmpfile=/tmp/os
os="$(uname)"
if [ "$os" = "Linux" ]; then
@@ -10,4 +11,4 @@ else
echo "unknown OS"
exit 1
fi
-echo $os >$tmpfile
+echo -n $os >$tmpfile