rip: fix `/tmp` directory path

Signed-off-by: PeroSar <perosar1111@gmail.com>
This commit is contained in:
PeroSar 2022-02-18 02:00:31 +05:30 committed by Henrik Grimler
parent 4949ffcb0d
commit d9c2132229
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A command-line deletion tool focused on safety, ergonomi
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.13.1
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/nivekuil/rip.git
TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -0,0 +1,11 @@
--- ./src/main.rs.bak 2022-02-18 01:48:31.328900348 +0530
+++ ./src/main.rs 2022-02-18 01:49:09.720900351 +0530
@@ -20,7 +20,7 @@
include!("util.rs");
-const GRAVEYARD: &'static str = "/tmp/graveyard";
+const GRAVEYARD: &'static str = "@TERMUX_PREFIX@/tmp/graveyard";
const RECORD: &'static str = ".record";
const LINES_TO_INSPECT: usize = 6;
const FILES_TO_INSPECT: usize = 6;