File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ catch() {
96
96
97
97
spinner () {
98
98
arg=" $1 "
99
- spin=' -\|/'
99
+ spin=' -\\ |/'
100
100
i=0
101
101
102
102
check_condition () {
@@ -395,15 +395,22 @@ install_pwalk() {
395
395
396
396
# Compile pwalk tool and put exec file in froster's binaries folder
397
397
echo " Compiling pwalk"
398
- gcc -pthread ${pwalk_path} /pwalk.c ${pwalk_path} /exclude.c ${pwalk_path} /fileProcess.c -o ${pwalk_path} /pwalk 2>&1 | redirect_output &
398
+ gcc -pthread ${pwalk_path} /pwalk.c ${pwalk_path} /exclude.c ${pwalk_path} /fileProcess.c -o ${pwalk_path} /pwalk &
399
399
spinner $!
400
400
401
401
# Get the froster's binaries folder
402
402
froster_dir=$( dirname " $( readlink -f $( which froster) ) " )
403
403
echo " Moving pwalk to froster's binaries folder"
404
404
405
405
# Move pwalk to froster's binaries folder
406
- mv ${pwalk_path} /pwalk ${froster_dir} /pwalk 2>&1 | redirect_output
406
+ mv ${pwalk_path} /pwalk ${froster_dir} /pwalk
407
+
408
+ # Verify pwalk was moved successfully
409
+ if [ ! -f " ${froster_dir} /pwalk" ]; then
410
+ echo " Error: Failed to move pwalk to ${froster_dir} /pwalk" >&2
411
+ exit 1
412
+ fi
413
+
407
414
echo " Installed pwalk at ${froster_dir} /pwalk"
408
415
409
416
# Delete downloaded pwalk files
You can’t perform that action at this time.
0 commit comments