Skip to content

Instantly share code, notes, and snippets.

@paperbenni
Last active February 1, 2020 16:38
Show Gist options
  • Save paperbenni/f7d92bdb916b626cdb15852eff3db618 to your computer and use it in GitHub Desktop.
Save paperbenni/f7d92bdb916b626cdb15852eff3db618 to your computer and use it in GitHub Desktop.

Revisions

  1. paperbenni revised this gist Feb 1, 2020. 1 changed file with 10 additions and 3 deletions.
    13 changes: 10 additions & 3 deletions helloworld.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    echo "hello world"
    whoami
    touch ~/.bashhelloworld
    #!/bin/bash

    echo "$0"

    SCRIPTPATH="$(
    cd "$(dirname "$0")" >/dev/null 2>&1
    pwd -P
    )"

    echo "$SCRIPTPATH"
  2. paperbenni created this gist Jan 12, 2020.
    3 changes: 3 additions & 0 deletions helloworld.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    echo "hello world"
    whoami
    touch ~/.bashhelloworld