auto


Logs | Files | README | README | GitLab


1
commit 5535185b154653c1531c3bbc93137ef3289c7642
2
Author: Connor Etherington <[email protected]>
3
Date:   Tue Apr 26 07:41:19 2022 +0200
4
5
    Update.
6
---
7
 auto     | 6 ++++++
8
 autoPart | 6 ++++++
9
 2 files changed, 12 insertions(+)
10
11
diff --git a/auto b/auto
12
index 1c93c07..da8a61e 100755
13
--- a/auto
14
+++ b/auto
15
@@ -14,6 +14,12 @@
16
 ########################################################################################################################################################################################
17
 ########################################################################################################################################################################################
18
 
19
+# Debugging:
20
+# trap 'lastCommand=$currentCommand; currentCommand=$BASH_COMMAND' DEBUG
21
+# trap 'echo $lastCommand' EXIT QUIT STOP ERR
22
+
23
+#########################################################################################################################################################################################
24
+
25
 check_root(){ [ "$(id -u)" -ne 0 ] && err "root priviledges are required to run this script."; }
26
 
27
 err(){ echo -e "\n$(tput bold; tput setaf 1)[-] ERROR: ${*}$(tput sgr0)" && exit 1 ; }
28
diff --git a/autoPart b/autoPart
29
index bf262b3..5655c9b 100755
30
--- a/autoPart
31
+++ b/autoPart
32
@@ -14,6 +14,12 @@
33
 #########################################################################################################################################################################################
34
 #########################################################################################################################################################################################
35
 
36
+# Debugging:
37
+# trap 'lastCommand=$currentCommand; currentCommand=$BASH_COMMAND' DEBUG
38
+# trap 'echo $lastCommand' EXIT QUIT STOP ERR
39
+
40
+#########################################################################################################################################################################################
41
+
42
 dsks=$(mktemp)
43
 selDsk=$(mktemp)
44
 selPar=$(mktemp)