mirror of
https://github.com/NiklasGollenstede/nixos-installer.git
synced 2025-08-09 07:31:24 +02:00
add --skip-formatting flag,
open debug shells with variables+functions
This commit is contained in:
@ -79,7 +79,7 @@ function copy-function { # 1: existingName, 2: newName
|
||||
function mkdir-sticky { # 1: path, 2?: fallbackOwner, 3?: fallbackGroup, 4?: fallbackMode
|
||||
local path ; path=$1 ; shift
|
||||
if [[ -d $path ]] ; then return ; fi # existing (symlink to existing) dir
|
||||
if [[ -L $path || -e $path ]] ; then echo "Can't create (child of) existing file (or broken symlink) '$path'" 1>&2 ; return 1 ; fi
|
||||
if [[ -L $path || -e $path ]] ; then echo "Can't create (child of) existing file (or broken symlink) '$path'" 1>&2 ; \return 1 ; fi
|
||||
local parent ; parent=$( dirname "$path" ) || return
|
||||
mkdir-sticky "$parent" "$@" || return
|
||||
parent=$( realpath "$parent" ) || return
|
||||
|
Reference in New Issue
Block a user