Exporting environment variable not working from shell script

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
I have ubuntu image in docker, I'm trying to setup nodejs, phantomjs, npm etc..
and for PhantomJS I need to export QT_QPA_PLATFORM variable and set it's value to offscreen.
The problem is that when I run export QT_QPA_PLATFORM=offscreen using shell script, it doesn't work, here's my shell script:
apt-get update
apt-get install nodejs -y
apt-get install phantomjs -y
export QT_QPA_PLATFORM=offscreen
Any ideas?
bash scripts powershell
add a comment |Â
up vote
1
down vote
favorite
I have ubuntu image in docker, I'm trying to setup nodejs, phantomjs, npm etc..
and for PhantomJS I need to export QT_QPA_PLATFORM variable and set it's value to offscreen.
The problem is that when I run export QT_QPA_PLATFORM=offscreen using shell script, it doesn't work, here's my shell script:
apt-get update
apt-get install nodejs -y
apt-get install phantomjs -y
export QT_QPA_PLATFORM=offscreen
Any ideas?
bash scripts powershell
1
Why tag powershell? IfphantomjsneedsQT_QPA_PLATFORM=offscreenon install I'd put the export in front.
â LotPings
Apr 30 at 11:21
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have ubuntu image in docker, I'm trying to setup nodejs, phantomjs, npm etc..
and for PhantomJS I need to export QT_QPA_PLATFORM variable and set it's value to offscreen.
The problem is that when I run export QT_QPA_PLATFORM=offscreen using shell script, it doesn't work, here's my shell script:
apt-get update
apt-get install nodejs -y
apt-get install phantomjs -y
export QT_QPA_PLATFORM=offscreen
Any ideas?
bash scripts powershell
I have ubuntu image in docker, I'm trying to setup nodejs, phantomjs, npm etc..
and for PhantomJS I need to export QT_QPA_PLATFORM variable and set it's value to offscreen.
The problem is that when I run export QT_QPA_PLATFORM=offscreen using shell script, it doesn't work, here's my shell script:
apt-get update
apt-get install nodejs -y
apt-get install phantomjs -y
export QT_QPA_PLATFORM=offscreen
Any ideas?
bash scripts powershell
asked Apr 30 at 10:17
Arkadi
1296
1296
1
Why tag powershell? IfphantomjsneedsQT_QPA_PLATFORM=offscreenon install I'd put the export in front.
â LotPings
Apr 30 at 11:21
add a comment |Â
1
Why tag powershell? IfphantomjsneedsQT_QPA_PLATFORM=offscreenon install I'd put the export in front.
â LotPings
Apr 30 at 11:21
1
1
Why tag powershell? If
phantomjsneeds QT_QPA_PLATFORM=offscreen on install I'd put the export in front.â LotPings
Apr 30 at 11:21
Why tag powershell? If
phantomjsneeds QT_QPA_PLATFORM=offscreen on install I'd put the export in front.â LotPings
Apr 30 at 11:21
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1030052%2fexporting-environment-variable-not-working-from-shell-script%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Why tag powershell? If
phantomjsneedsQT_QPA_PLATFORM=offscreenon install I'd put the export in front.â LotPings
Apr 30 at 11:21