diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 12:37:49 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-13 12:37:49 +0200 |
commit | 33c943a5523579d6c2695dea39fd4d864e07170a (patch) | |
tree | e512d27bd46bbf803c2c1cc075ae081c2abf47a8 | |
parent | 002823adceee104f061a90f2c53f4dffeec73436 (diff) | |
download | utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar.gz utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar.bz2 utils-33c943a5523579d6c2695dea39fd4d864e07170a.tar.xz utils-33c943a5523579d6c2695dea39fd4d864e07170a.zip |
Bump recv
-rw-r--r-- | nix/recv.nix | 2 | ||||
-rw-r--r-- | recv | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/nix/recv.nix b/nix/recv.nix index 6bdc559..6704d41 100644 --- a/nix/recv.nix +++ b/nix/recv.nix | |||
@@ -4,7 +4,7 @@ | |||
4 | 4 | ||
5 | stdenv.mkDerivation rec { | 5 | stdenv.mkDerivation rec { |
6 | name = "recv-${version}"; | 6 | name = "recv-${version}"; |
7 | version = "0.1"; | 7 | version = "0.2"; |
8 | src = ../recv; | 8 | src = ../recv; |
9 | 9 | ||
10 | phases = [ "buildPhase" "installPhase" ]; | 10 | phases = [ "buildPhase" "installPhase" ]; |
@@ -1,13 +1,13 @@ | |||
1 | #!@zsh@/bin/zsh | 1 | #!@zsh@/bin/zsh |
2 | 2 | ||
3 | set -e | ||
4 | |||
3 | user="$0" | 5 | user="$0" |
4 | [[ -n "$user" ]] || exit 2 | 6 | [[ -n "$user" ]] || exit 2 |
5 | 7 | ||
6 | homeDir=$(getent passwd "$user" | cut -f6 -d:) | 8 | recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic" |
7 | recvDir="${homeDir}/uucppublic" | ||
8 | |||
9 | [[ -d "$recvDir" ]] || exit 1 | 9 | [[ -d "$recvDir" ]] || exit 1 |
10 | 10 | ||
11 | umask 007 | 11 | umask 770 |
12 | 12 | ||
13 | exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file | 13 | exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file |