Skip to content

Instantly share code, notes, and snippets.

@Kasp42
Created March 27, 2023 06:09
Show Gist options
  • Select an option

  • Save Kasp42/a916a3d631e3fe76b3f3ad9cf127086d to your computer and use it in GitHub Desktop.

Select an option

Save Kasp42/a916a3d631e3fe76b3f3ad9cf127086d to your computer and use it in GitHub Desktop.
Install Less 4.1.3
#!/bin/bash
if test "$BASH" = ""; then
echo "You must use: bash $0"
exit 1
fi
s_project_dir="$1"
if [[ ! -d "$s_project_dir" ]]; then
echo "Project dir does not exist: $s_project_dir"
exit 1
fi
if [[ ! -d "$s_project_dir/wl.trunk" ]]; then
echo "Workspace dir is not valid."
exit
fi
mkdir ${s_project_dir}/less/4.1.3
cd ${s_project_dir}/less/4.1.3 && npm install [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment