Przeglądaj źródła

Copy rather than move

Bob Mottram 10 lat temu
rodzic
commit
c8e193a985
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      src/freedombone-client

+ 2
- 1
src/freedombone-client Wyświetl plik

@@ -391,7 +391,8 @@ function mesh_batman {
391 391
   echo 'esac' >> $batman_script
392 392
   echo 'exit 0' >> $batman_script
393 393
   chmod +x $batman_script
394
-  sudo mv $batman_script /usr/bin/batman
394
+  sudo cp -f $batman_script /usr/bin/batman
395
+  rm $batman_script
395 396
 }
396 397
 
397 398
 function show_help {