#!/bin/bash
echo "-- create Linux rootfs begin --"
echo '$1'
rootfs_path = $1
echo $rootfs_path
#rm-rf rootfs_path
mkdir $rootfs_path
cd $rootfs_path
运行效果
# ./rootfs_create.sh aa
-- create Linux rootfs begin --
$1./rootfs_create.sh: line 4: rootfs_path: command not found
mkdir: missing operand
Try 'mkdir --help'for more information.