link sh to dash
This commit is contained in:
parent
ba49abdc5d
commit
5ed6294f67
18
dotfiles-old/scripts/dash_sh.sh
Normal file
18
dotfiles-old/scripts/dash_sh.sh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
which sh >/dev/null 2>&1 \
|
||||||
|
|| exit 1
|
||||||
|
|
||||||
|
SH_LOCATION="$(which sh)"
|
||||||
|
|
||||||
|
[ -L "$SH_LOCATION" ] \
|
||||||
|
|| exit 1
|
||||||
|
|
||||||
|
which dash >/dev/null 2>&1 \
|
||||||
|
|| exit 1
|
||||||
|
|
||||||
|
unlink "$SH_LOCATION"
|
||||||
|
|
||||||
|
ln -s "$(which dash)" "$SH_LOCATION"
|
Loading…
Reference in New Issue
Block a user