[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: check, that a script is in a folder



S Mathias a écrit :
> 
> if ! [ "${PWD##*/}" == "asdf" ]; then echo "error: not the asdf dir"; exit 1; fi

Note that "==" is a bashism. "=" is more portable across other shells
such as dash.


Reply to: