@@ -280,7 +280,7 @@ install_froster() {
280
280
281
281
if [ " $LOCAL_INSTALL " = " true" ]; then
282
282
echo -e " \nInstalling Froster from the current directory in --editable mode..."
283
- pip install -e . > /dev/null 2>&1 &
283
+ python3 -m pip install -e . > /dev/null 2>&1 &
284
284
spinner $!
285
285
echo " ...Froster installed"
286
286
else
@@ -324,6 +324,9 @@ install_pwalk() {
324
324
exit 1
325
325
fi
326
326
327
+ # Get the current directory and change to a new temporary directory
328
+ curdir=$( pwd) && tmpdir=$( mktemp -d -t froster.XXX) && cd " $tmpdir "
329
+
327
330
# Variables of pwalk third-party tool froster is using
328
331
pwalk_commit=1df438e9345487b9c51d1eea3c93611e9198f173 # update this commit when new pwalk version released
329
332
pwalk_repository=https://github.com/fizwit/filesystem-reporting-tools/archive/${pwalk_commit} .tar.gz
@@ -353,6 +356,9 @@ install_pwalk() {
353
356
# Delete downloaded pwalk files
354
357
echo " Cleaning up pwalk installation files"
355
358
rm -rf ${pwalk_path} > /dev/null 2>&1
359
+
360
+ # back to PWD
361
+ cd $curdir
356
362
357
363
echo " ...pwalk installed"
358
364
}
@@ -367,6 +373,9 @@ install_rclone() {
367
373
exit 1
368
374
fi
369
375
376
+ # Get the current directory and change to a new temporary directory
377
+ curdir=$( pwd) && tmpdir=$( mktemp -d -t froster.XXX) && cd " $tmpdir "
378
+
370
379
371
380
# Check the architecture of the system
372
381
arch=$( uname -m)
@@ -408,6 +417,9 @@ install_rclone() {
408
417
echo " Cleaning up rclone installation files"
409
418
rm -rf rclone-current-linux-* .zip rclone-v* / > /dev/null 2>&1
410
419
420
+ # back to PWD
421
+ cd $curdir
422
+
411
423
echo " ...rclone installed"
412
424
}
413
425
@@ -424,9 +436,6 @@ umask 0002
424
436
# Backup old installation (if any)
425
437
backup_old_installation
426
438
427
- # Get the current directory and change to a new temporary directory
428
- curdir=$( pwd) && tmpdir=$( mktemp -d -t froster.XXX) && cd " $tmpdir "
429
-
430
439
# Install pipx
431
440
install_pipx
432
441
@@ -439,9 +448,6 @@ install_pwalk
439
448
# Install rclone
440
449
install_rclone
441
450
442
- # back to PWD
443
- cd $curdir
444
-
445
451
# Get the installed froster version
446
452
version=$( froster -v | awk ' {print $2}' )
447
453
0 commit comments