Sfoglia il codice sorgente

Missing project name

Bob Mottram 8 anni fa
parent
commit
d017ec4081
2 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 4
    0
      src/freedombone-utils-setup
  2. 5
    1
      src/freedombone-vars

+ 4
- 0
src/freedombone-utils-setup Vedi File

28
 # You should have received a copy of the GNU Affero General Public License
28
 # You should have received a copy of the GNU Affero General Public License
29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30
 
30
 
31
+if [ ! $PROJECT_NAME ]; then
32
+    PROJECT_NAME='freedombone'
33
+fi
34
+
31
 # Different system variants which may be specified within
35
 # Different system variants which may be specified within
32
 # the SYSTEM_TYPE option
36
 # the SYSTEM_TYPE option
33
 VARIANT_FULL="full"
37
 VARIANT_FULL="full"

+ 5
- 1
src/freedombone-vars Vedi File

30
 
30
 
31
 DEFAULT_LANGUAGE=$(echo $LANG)
31
 DEFAULT_LANGUAGE=$(echo $LANG)
32
 
32
 
33
+if [ ! $PROJECT_NAME ]; then
34
+    PROJECT_NAME='freedombone'
35
+fi
36
+
33
 PROJECT_INSTALL_DIR=/usr/local/bin
37
 PROJECT_INSTALL_DIR=/usr/local/bin
34
 if [ -f /usr/bin/${PROJECT_NAME} ]; then
38
 if [ -f /usr/bin/${PROJECT_NAME} ]; then
35
-	PROJECT_INSTALL_DIR=/usr/bin
39
+    PROJECT_INSTALL_DIR=/usr/bin
36
 fi
40
 fi
37
 
41
 
38
 # username created by default within a debian image
42
 # username created by default within a debian image