We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef8843 commit 5fcfa55Copy full SHA for 5fcfa55
z0r
@@ -131,7 +131,16 @@ checkdep(){
131
fi
132
done
133
}
134
-
+del_history(){
135
+ echo -e $RED"Are you sure? History can not be restored [y/n]"$FINE
136
+ read input
137
+ case $input in
138
+ [Yy]) echo "" > $LOGDIR
139
+ ;;
140
+ *) exit 0
141
142
+ esac
143
+}
144
#option parser
145
opsparser(){
146
while getopts ":hvlrde:c:m:" opt; do
@@ -164,7 +173,7 @@ while getopts ":hvlrde:c:m:" opt; do
164
173
echo -e $GREEN"======================================================================================================="$FINE
165
174
exit 0
166
175
;;
167
- r) echo "" > $LOGDIR
176
+ r) del_history
168
177
169
178
170
179
\?) echo -e $RED"enter a valid option, use -h for help"$FINE
0 commit comments