Kaynağa Gözat

Missing project name

Bob Mottram 8 yıl önce
ebeveyn
işleme
d017ec4081
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 4
    0
      src/freedombone-utils-setup
  2. 5
    1
      src/freedombone-vars

+ 4
- 0
src/freedombone-utils-setup Dosyayı Görüntüle

@@ -28,6 +28,10 @@
28 28
 # You should have received a copy of the GNU Affero General Public License
29 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 35
 # Different system variants which may be specified within
32 36
 # the SYSTEM_TYPE option
33 37
 VARIANT_FULL="full"

+ 5
- 1
src/freedombone-vars Dosyayı Görüntüle

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