Quellcode durchsuchen

Get toxcore commit from app script

Bob Mottram vor 8 Jahren
Ursprung
Commit
b9e1e4b72d
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      src/freedombone-image-customise

+ 2
- 2
src/freedombone-image-customise Datei anzeigen

@@ -627,9 +627,9 @@ function mesh_firewall {
627 627
 function mesh_tox_node {
628 628
 	# obtain commits from the main file
629 629
 	if [ -f /usr/local/bin/${PROJECT_NAME} ]; then
630
-		TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
630
+		TOXCORE_COMMIT_MAIN=$(cat /usr/local/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
631 631
 	else
632
-		TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME} | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
632
+		TOXCORE_COMMIT_MAIN=$(cat /usr/bin/${PROJECT_NAME}-app-tox | grep "TOXCORE_COMMIT=" | head -n 1 | awk -F "'" '{print $2}')
633 633
 	fi
634 634
 	if [ ${#TOXCORE_COMMIT_MAIN} -gt 10 ]; then
635 635
 		TOXCORE_COMMIT=$TOXCORE_COMMIT_MAIN