source cant use variables (p4)
This commit is contained in:
parent
80d8a9bedf
commit
6616478014
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#check_dependency
|
#check_dependency
|
||||||
# -> 0 | -> 16
|
# -> 0 | -> 16
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#check_user
|
#check_user
|
||||||
function check_user() {
|
function check_user() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#chroot_clean [chroot_dir]
|
#chroot_clean [chroot_dir]
|
||||||
function chroot_clean() {
|
function chroot_clean() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#chroot_initial [chroot_dir]
|
#chroot_initial [chroot_dir]
|
||||||
function chroot_initial() {
|
function chroot_initial() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#chroot_is_mounted [chroot_dir]
|
#chroot_is_mounted [chroot_dir]
|
||||||
#(Boolean)-> true | false
|
#(Boolean)-> true | false
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#chroot_sh [chroot_dir] [command]
|
#chroot_sh [chroot_dir] [command]
|
||||||
function chroot_sh() {
|
function chroot_sh() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#chroot_umount [chroot_dir]
|
#chroot_umount [chroot_dir]
|
||||||
function chroot_umount() {
|
function chroot_umount() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#error_code [error_level]
|
#error_code [error_level]
|
||||||
function error_code() {
|
function error_code() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#filesystem_extract [filesystem_img_source] [chroot_path]
|
#filesystem_extract [filesystem_img_source] [chroot_path]
|
||||||
function filesystem_extract() {
|
function filesystem_extract() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#filesystem_get_type [dir]
|
#filesystem_get_type [dir]
|
||||||
#(String)-> ext4, ext2, btfs, fuse, ...
|
#(String)-> ext4, ext2, btfs, fuse, ...
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#filesystem_pack [chroot_path] [filesystem_img_destination]
|
#filesystem_pack [chroot_path] [filesystem_img_destination]
|
||||||
function filesystem_pack() {
|
function filesystem_pack() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#iso_create [chroot_path] [iso_extr_dir] [iso_destination] [iso_lable]
|
#iso_create [chroot_path] [iso_extr_dir] [iso_destination] [iso_lable]
|
||||||
function iso_create() {
|
function iso_create() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#iso_extract [iso_source] [iso_extr_dir]
|
#iso_extract [iso_source] [iso_extr_dir]
|
||||||
function iso_extract() {
|
function iso_extract() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#on_exit [error_level]
|
#on_exit [error_level]
|
||||||
function on_exit() {
|
function on_exit() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#workspace_erase [workspace_path]
|
#workspace_erase [workspace_path]
|
||||||
function workspace_erase() {
|
function workspace_erase() {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
####################################
|
####################################
|
||||||
##### Base Template D E B I A N ####
|
##### Base Template D E B I A N ####
|
||||||
####################################
|
####################################
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#desinfect.17
|
#desinfect.17
|
||||||
# . -Y ubuntu.16.04 -> ubuntu -> debian
|
# . -Y ubuntu.16.04 -> ubuntu -> debian
|
||||||
source $LIBDIR/proj/ubuntu.16.04
|
source <LIBDIR>/proj/ubuntu.16.04
|
||||||
|
|
||||||
TEST2="na"
|
TEST2="na"
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
##### Base Template U B U N T U ####
|
##### Base Template U B U N T U ####
|
||||||
####################################
|
####################################
|
||||||
# . -> debian
|
# . -> debian
|
||||||
source $LIBDIR/proj/debian
|
source <LIBDIR>/proj/debian
|
||||||
|
|
||||||
TEST2="jaUb"
|
TEST2="jaUb"
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#remaster lib
|
#remaster lib
|
||||||
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
[ -d "<LIBDIR>"] || { echo "LIBDIR not exist"; exit 1; }
|
||||||
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
|
||||||
|
|
||||||
#ubuntu.16.04
|
#ubuntu.16.04
|
||||||
# . -> ubuntu -> debian
|
# . -> ubuntu -> debian
|
||||||
source $LIBDIR/proj/ubuntu
|
source <LIBDIR>/proj/ubuntu
|
||||||
|
|
||||||
TEST2="jaUBU"
|
TEST2="jaUBU"
|
||||||
|
Loading…
Reference in New Issue
Block a user