aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.com>2022-02-11 09:23:39 +0200
committerkaotisk <kaotisk@arching-kaos.com>2022-02-11 09:23:39 +0200
commitf3cbbde027900643d5ec56af6746be0dab9dfb9e (patch)
treea86c221d8cfc8159609482a6b937748cee761a3f /bin
parent143b88e33d8c09e6baf947f9d4f2550458b069d8 (diff)
downloadarching-kaos-tools-f3cbbde027900643d5ec56af6746be0dab9dfb9e.tar.gz
arching-kaos-tools-f3cbbde027900643d5ec56af6746be0dab9dfb9e.tar.bz2
arching-kaos-tools-f3cbbde027900643d5ec56af6746be0dab9dfb9e.zip
more fixes++
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-files4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ak-files b/bin/ak-files
index 39950e3..c307640 100755
--- a/bin/ak-files
+++ b/bin/ak-files
@@ -41,7 +41,7 @@ main(){
FILENAME="$1"
CRP="$2"
echo "Adding $FILENAME"
- TEMPASSIN=tempassin
+ TEMPASSIN="$(tempassin)"
cd $TEMPASSIN
cp $2/$1 $TEMPASSIN/$1
FILE="$TEMPASSIN/$1"
@@ -55,7 +55,7 @@ main(){
cat > $TEMPASSIN/data <<EOF
{
"timestamp":"$(date -u +%s)",
- "filename":"$FILE",
+ "filename":"$FILENAME",
"ipfs":"$FILE_IPFS_HASH",
"detach":"$SIGNATURE"
}