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.

Revisions

  1. Kasp42 created this gist Mar 27, 2023.
    21 changes: 21 additions & 0 deletions install_less_4.1.3.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/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]