|
|
|
@ -131,11 +131,6 @@ require_package() {
|
|
|
|
|
# Change directory into where the script is
|
|
|
|
|
cd $(dirname $0)/
|
|
|
|
|
|
|
|
|
|
# Define log file
|
|
|
|
|
BUILD_LOG="$(pwd)/build.log"
|
|
|
|
|
debug "BUILD_LOG: $BUILD_LOG"
|
|
|
|
|
# Create empty file
|
|
|
|
|
: > "$BUILD_LOG"
|
|
|
|
|
# Allowed command line options
|
|
|
|
|
source .getopt.sh
|
|
|
|
|
|
|
|
|
@ -161,6 +156,12 @@ while true; do
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Define log file
|
|
|
|
|
BUILD_LOG="$(pwd)/build.log"
|
|
|
|
|
debug "BUILD_LOG: $BUILD_LOG"
|
|
|
|
|
# Create empty file
|
|
|
|
|
: > "$BUILD_LOG"
|
|
|
|
|
|
|
|
|
|
# Set default values
|
|
|
|
|
KALI_ARCH=${KALI_ARCH:-$HOST_ARCH}
|
|
|
|
|
if [ "$KALI_ARCH" = "x64" ]; then
|
|
|
|
@ -266,4 +267,4 @@ debug "Moving files"
|
|
|
|
|
run_and_log mv -f $IMAGE_NAME $TARGET_DIR/$(target_image_name $KALI_ARCH)
|
|
|
|
|
run_and_log mv -f "$BUILD_LOG" $TARGET_DIR/$(target_build_log $KALI_ARCH)
|
|
|
|
|
|
|
|
|
|
run_and_log echo -e "\n***\nGENERATED KALI IMAGE: $(readlink -f $TARGET_DIR/$(target_image_name $KALI_ARCH))\n***"
|
|
|
|
|
echo -e "\n***\nGENERATED KALI IMAGE: $(readlink -f $TARGET_DIR/$(target_image_name $KALI_ARCH))\n***"
|
|
|
|
|