fix shell code