~jdstrand/ufw/trunk

« back to all changes in this revision

Viewing changes to snap-files/bin/shell

  • Committer: Jamie Strandboge
  • Date: 2016-12-26 19:43:56 UTC
  • mto: This revision was merged to the branch mainline in revision 968.
  • Revision ID: jamie@ubuntu.com-20161226194356-271jrb9db9jd0vl2
update to use snapcraft wholly:
- add snapcraft.yaml with make plugin
- adjust Makefile to take SNAP=yes arg for 'all' and 'install'
- remove snappy-packaging/
- add snap-files/bin/*

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
if [ -n "$SNAP" ]; then
 
4
    export PATH="$SNAP/bin:$SNAP/sbin:$SNAP/usr/bin:$SNAP/usr/sbin:/bin:/sbin:/usr/bin:/usr/sbin"
 
5
fi
 
6
 
 
7
args="--norc"
 
8
if [ -z "$1" ]; then
 
9
    echo "Temporary shell for ufw"
 
10
    args="$args -i"
 
11
fi
 
12
 
 
13
cd "$SNAP_DATA"
 
14
/bin/bash $args "$@"